Java spring hbase应用程序中的IOException

Java spring hbase应用程序中的IOException,java,eclipse,hadoop,hbase,hortonworks-data-platform,Java,Eclipse,Hadoop,Hbase,Hortonworks Data Platform,运行spring hbase应用程序时,我得到: .IOException:找不到可执行文件null\bin\winutils.exe @RestController @EnableAutoConfiguration(排除={VelocityAutoConfiguration.class}) 公共类应用程序{ 公共静态void main(最终字符串[]args){ SpringApplication.run(App.class,args); Configuration=HBaseConfigur

运行spring hbase应用程序时,我得到:

.IOException:找不到可执行文件null\bin\winutils.exe

@RestController
@EnableAutoConfiguration(排除={VelocityAutoConfiguration.class})
公共类应用程序{
公共静态void main(最终字符串[]args){
SpringApplication.run(App.class,args);
Configuration=HBaseConfiguration.create();
set(“hbase.zookeeper.property.clientPort”、“2181”);
set(“hbase.zookeeper.quorum”、“hortonworks.hbase.vm”);
set(“zookeeper.znode.parent”,“/hbase unsecure”);
configuration.set(“fs.defaultFS”hdfs://sandbox.hortonworks.com:8020");
}
}
java.io.IOException:在Hadoop二进制文件中找不到可执行文件null\bin\winutils.exe。
位于org.apache.hadoop.util.Shell.getQualifiedBinPath(Shell.java:356)
位于org.apache.hadoop.util.Shell.getWinUtilsPath(Shell.java:371)
位于org.apache.hadoop.util.Shell(Shell.java:364)
位于org.apache.hadoop.util.StringUtils。(StringUtils.java:80)
位于org.apache.hadoop.conf.Configuration.getBoolean(Configuration.java:1437)
位于org.apache.hadoop.hbase.HBaseConfiguration.checkDefaultsVersion(HBaseConfiguration.java:67)
位于org.apache.hadoop.hbase.HBaseConfiguration.addHbaseResources(HBaseConfiguration.java:81)
位于org.apache.hadoop.hbase.HBaseConfiguration.create(HBaseConfiguration.java:96)
位于org.resilinc.app.app.main(app.java:25)

我正在从运行在Windows上的eclipse运行此程序,我需要连接到运行在vbox上的hortonworks。

在Windows计算机中,从Internet下载winutil.exe并复制到文件夹:

hadoop.home.dir = "copied folder of winutils"

这是可行的,但您必须在此文件夹中配置HADOOP_HOME=some文件夹创建bin并复制bin文件夹中的win.exe
hadoop.home.dir = "copied folder of winutils"