Spark

来源:互联网 发布:股价历史数据库 编辑:程序博客网 时间:2024/06/02 01:59

下载链接:

winutils(无需考虑版本)

Hadoop 2.6.0 Windows 64-bit Binaries

网盘分享

方法:

下载之后解压、本地配置环境变量:HADOOP_HOME


原因:


public static final String getQualifiedBinPath(String executable)   throws IOException {    // construct hadoop bin path to the specified executable    String fullExeName = HADOOP_HOME_DIR + File.separator + "bin"      + File.separator + executable;     File exeFile = new File(fullExeName);    if (!exeFile.exists()) {      throw new IOException("Could not locate executable " + fullExeName        + " in the Hadoop binaries.");    }     return exeFile.getCanonicalPath();  } private static String HADOOP_HOME_DIR = checkHadoopHome();private static String checkHadoopHome() {     // first check the Dflag hadoop.home.dir with JVM scope    String home = System.getProperty("hadoop.home.dir");     // fall back to the system/user-global env variable    if (home == null) {      home = System.getenv("HADOOP_HOME");    }     ...}


原创粉丝点击