spring-hbase 应用程序中的 IOException
IOException in spring-hbase application
虽然 运行 spring-hbase 应用程序我得到:
.IOException: Could not locate executable null\bin\winutils.exe
@RestController
@EnableAutoConfiguration(exclude={VelocityAutoConfiguration.class})
public class App {
public static void main(final String[] args) {
SpringApplication.run(App.class, args);
Configuration configuration = HBaseConfiguration.create();
configuration.set("hbase.zookeeper.property.clientPort", "2181");
configuration.set("hbase.zookeeper.quorum", "hortonworks.hbase.vm");
configuration.set("zookeeper.znode.parent", "/hbase-unsecure");
configuration.set(" fs.defaultFS","hdfs://sandbox.hortonworks.com:8020");
}
}
java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
at org.apache.hadoop.util.Shell.getQualifiedBinPath(Shell.java:356)
at org.apache.hadoop.util.Shell.getWinUtilsPath(Shell.java:371)
at org.apache.hadoop.util.Shell.<clinit>(Shell.java:364)
at org.apache.hadoop.util.StringUtils.<clinit>(StringUtils.java:80)
at org.apache.hadoop.conf.Configuration.getBoolean(Configuration.java:1437)
at org.apache.hadoop.hbase.HBaseConfiguration.checkDefaultsVersion(HBaseConfiguration.java:67)
at org.apache.hadoop.hbase.HBaseConfiguration.addHbaseResources(HBaseConfiguration.java:81)
at org.apache.hadoop.hbase.HBaseConfiguration.create(HBaseConfiguration.java:96)
at org.resilinc.app.App.main(App.java:25)
我是 运行 来自 运行 on Windows 的 eclipse,我需要连接到 vbox 上的 hortonworks 运行。
在 Windows 机器上,从 Internet 下载 winutil.exe 并复制到文件夹中:
hadoop.home.dir = "copied folder of winutils"
虽然 运行 spring-hbase 应用程序我得到:
.IOException: Could not locate executable null\bin\winutils.exe
@RestController
@EnableAutoConfiguration(exclude={VelocityAutoConfiguration.class})
public class App {
public static void main(final String[] args) {
SpringApplication.run(App.class, args);
Configuration configuration = HBaseConfiguration.create();
configuration.set("hbase.zookeeper.property.clientPort", "2181");
configuration.set("hbase.zookeeper.quorum", "hortonworks.hbase.vm");
configuration.set("zookeeper.znode.parent", "/hbase-unsecure");
configuration.set(" fs.defaultFS","hdfs://sandbox.hortonworks.com:8020");
}
}
java.io.IOException: Could not locate executable null\bin\winutils.exe in the Hadoop binaries.
at org.apache.hadoop.util.Shell.getQualifiedBinPath(Shell.java:356)
at org.apache.hadoop.util.Shell.getWinUtilsPath(Shell.java:371)
at org.apache.hadoop.util.Shell.<clinit>(Shell.java:364)
at org.apache.hadoop.util.StringUtils.<clinit>(StringUtils.java:80)
at org.apache.hadoop.conf.Configuration.getBoolean(Configuration.java:1437)
at org.apache.hadoop.hbase.HBaseConfiguration.checkDefaultsVersion(HBaseConfiguration.java:67)
at org.apache.hadoop.hbase.HBaseConfiguration.addHbaseResources(HBaseConfiguration.java:81)
at org.apache.hadoop.hbase.HBaseConfiguration.create(HBaseConfiguration.java:96)
at org.resilinc.app.App.main(App.java:25)
我是 运行 来自 运行 on Windows 的 eclipse,我需要连接到 vbox 上的 hortonworks 运行。
在 Windows 机器上,从 Internet 下载 winutil.exe 并复制到文件夹中:
hadoop.home.dir = "copied folder of winutils"