资源简介

附件包含elasticsearch632版本linux安装包(多节点集群配置文件),以及kibana安装包。es测试数据

资源截图

代码片段和文件信息

/*
Licensed to the Apache Software Foundation (ASF) under one
or more contributor license agreements.  See the NOTICE file
distributed with this work for additional information
regarding copyright ownership.  The ASF licenses this file
to you under the Apache License Version 2.0 (the
“License“); you may not use this file except in compliance
with the License.  You may obtain a copy of the License at

  https://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing
software distributed under the License is distributed on an
“AS IS“ BASIS WITHOUT WARRANTIES OR CONDITIONS OF ANY
KIND either express or implied.  See the License for the
specific language governing permissions and limitations
under the License.
*/

import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
import java.io.IOException;
import java.net.URL;
import java.nio.channels.Channels;
import java.nio.channels.ReadableByteChannel;
import java.util.Properties;

public class MavenWrapperDownloader {

    /**
     * Default URL to download the maven-wrapper.jar from if no ‘downloadUrl‘ is provided.
     */
    private static final String DEFAULT_DOWNLOAD_URL =
            “https://repo.maven.apache.org/maven2/io/takari/maven-wrapper/0.4.2/maven-wrapper-0.4.2.jar“;

    /**
     * Path to the maven-wrapper.properties file which might contain a downloadUrl property to
     * use instead of the default one.
     */
    private static final String MAVEN_WRAPPER_PROPERTIES_PATH =
            “.mvn/wrapper/maven-wrapper.properties“;

    /**
     * Path where the maven-wrapper.jar will be saved to.
     */
    private static final String MAVEN_WRAPPER_JAR_PATH =
            “.mvn/wrapper/maven-wrapper.jar“;

    /**
     * Name of the property which should be used to override the default download url for the wrapper.
     */
    private static final String PROPERTY_NAME_WRAPPER_URL = “wrapperUrl“;

    public static void main(String args[]) {
        System.out.println(“- Downloader started“);
        File baseDirectory = new File(args[0]);
        System.out.println(“- Using base directory: “ + baseDirectory.getAbsolutePath());

        // If the maven-wrapper.properties exists read it and check if it contains a custom
        // wrapperUrl parameter.
        File mavenWrapperPropertyFile = new File(baseDirectory MAVEN_WRAPPER_PROPERTIES_PATH);
        String url = DEFAULT_DOWNLOAD_URL;
        if (mavenWrapperPropertyFile.exists()) {
            FileInputStream mavenWrapperPropertyFileInputStream = null;
            try {
                mavenWrapperPropertyFileInputStream = new FileInputStream(mavenWrapperPropertyFile);
                Properties mavenWrapperProperties = new Properties();
                mavenWrapperProperties.load(mavenWrapperPropertyFileInputStream);
                url = mavenWrapperProperties.getProperty(PROPERTY_NAME_WRAPPER_URL url);
            } catch (IOException e) {
                Syst

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----
     目录           0  2019-05-31 17:31  es6.3.2-kibana6.3.2\
     文件        6148  2019-05-31 17:31  es6.3.2-kibana6.3.2\.DS_Store
     目录           0  2019-05-31 17:31  __MACOSX\
     目录           0  2019-05-31 17:31  __MACOSX\es6.3.2-kibana6.3.2\
     文件         120  2019-05-31 17:31  __MACOSX\es6.3.2-kibana6.3.2\._.DS_Store
     文件         602  2019-05-31 16:49  es6.3.2-kibana6.3.2\es_insert_data.txt
     文件         317  2019-05-31 16:49  __MACOSX\es6.3.2-kibana6.3.2\._es_insert_data.txt
     目录           0  2019-05-27 17:24  es6.3.2-kibana6.3.2\.mvn\
     目录           0  2019-05-31 17:31  es6.3.2-kibana6.3.2\.mvn\wrapper\
     文件        4629  2019-05-27 17:25  es6.3.2-kibana6.3.2\.mvn\wrapper\MavenWrapperDownloader.java
     目录           0  2019-05-31 17:31  __MACOSX\es6.3.2-kibana6.3.2\.mvn\
     目录           0  2019-05-31 17:31  __MACOSX\es6.3.2-kibana6.3.2\.mvn\wrapper\
     文件         176  2019-05-27 17:25  __MACOSX\es6.3.2-kibana6.3.2\.mvn\wrapper\._MavenWrapperDownloader.java
     文件         116  2019-05-27 17:24  es6.3.2-kibana6.3.2\.mvn\wrapper\maven-wrapper.properties
     文件         176  2019-05-27 17:24  __MACOSX\es6.3.2-kibana6.3.2\.mvn\wrapper\._maven-wrapper.properties
     文件       48337  2019-05-27 17:24  es6.3.2-kibana6.3.2\.mvn\wrapper\maven-wrapper.jar
     文件         176  2019-05-27 17:24  __MACOSX\es6.3.2-kibana6.3.2\.mvn\wrapper\._maven-wrapper.jar
     文件         176  2019-05-31 17:31  __MACOSX\es6.3.2-kibana6.3.2\.mvn\._wrapper
     文件         176  2019-05-27 17:24  __MACOSX\es6.3.2-kibana6.3.2\._.mvn
     文件        2964  2019-05-31 16:45  es6.3.2-kibana6.3.2\elasticsearch-node1.yml
     文件        2963  2019-05-31 16:46  es6.3.2-kibana6.3.2\elasticsearch-node2.yml
     文件    91452574  2019-05-30 14:47  es6.3.2-kibana6.3.2\elasticsearch-6.3.2.tar.gz
     文件         460  2019-05-30 14:47  __MACOSX\es6.3.2-kibana6.3.2\._elasticsearch-6.3.2.tar.gz
     目录           0  2019-05-28 09:55  es6.3.2-kibana6.3.2\.idea\
     文件         172  2019-05-28 09:53  es6.3.2-kibana6.3.2\.idea\encodings.xml
     目录           0  2019-05-28 09:55  es6.3.2-kibana6.3.2\.idea\libraries\
     文件         537  2019-05-28 09:53  es6.3.2-kibana6.3.2\.idea\libraries\Maven__org_yaml_snakeyaml_1_17.xml
     文件         605  2019-05-28 09:53  es6.3.2-kibana6.3.2\.idea\libraries\Maven__org_apache_httpcomponents_httpcore_4_4_9.xml
     文件         741  2019-05-28 09:53  es6.3.2-kibana6.3.2\.idea\libraries\Maven__org_springframework_boot_spring_boot_starter_1_5_12_RELEASE.xml
     文件         683  2019-05-28 09:53  es6.3.2-kibana6.3.2\.idea\libraries\Maven__com_netflix_netflix_commons_netflix_statistics_0_1_1.xml
     文件         585  2019-05-28 09:53  es6.3.2-kibana6.3.2\.idea\libraries\Maven__commons_codec_commons_codec_1_10.xml
............此处省略120个文件信息

评论

共有 条评论