not locate executable null\bin\winutils.exe in the Hadoop binaries.

Source: Internet
Author: User
Tags file copy zookeeper

1: This problem is all played rotten, here I also record, convenient after the brain repair:

1 slf4j:class path contains multiple slf4j bindings.2Slf4j:found bindinginch[jar:file:/e:/360downloads/hadoop-2.4.1/share/hadoop/common/lib/slf4j-log4j12-1.7.5. Jar!/org/slf4j/impl/staticloggerbinder.class]3Slf4j:found bindinginch[jar:file:/e:/360downloads/hbase-0.99.2/lib/slf4j-log4j12-1.7.7. Jar!/org/slf4j/impl/staticloggerbinder.class]4Slf4j:see for an explanation.5Slf4j:actual binding isof type [org.slf4j.impl.Log4jLoggerFactory]6  .- A- -  -: .: -,778WARN [main] util. Nativecodeloader (<clinit> ( +)-Unable to load Native-hadoop library forYour platform ...usingBuiltin-java classeswhereapplicable7  .- A- -  -: .: -,786ERROR [main] util. Shell ( (336)-Failed to locate the winutils binaryinchThe Hadoop binary not locate executableNULL\bin\winutils.exeinchThe Hadoop binaries.9At Org.apache.hadoop.util.Shell.getQualifiedBinPath ( Org.apache.hadoop.util.Shell.getWinUtilsPath ( OneAt<clinit> ( AAt Org.apache.hadoop.util.stringutils.<clinit> ( the) -At ( the) -At<init> ( the) theAt ( -) -At ( -At ( -At ( +At ( -At ( +At$securehadoopuser.<init> ( the) AAt$securehadoopuser.<init> ( atAt ( -At ( the) -At Org.apache.hadoop.hbase.client.ConnectionFactory.createConnection ( -At Org.apache.hadoop.hbase.client.ConnectionFactory.createConnection ( -At Com.hbaseTest.HbaseTest.init ( $) - At sun.reflect.NativeMethodAccessorImpl.invoke0 (Native Method) inAt Sun.reflect.NativeMethodAccessorImpl.invoke ( $) -At Sun.reflect.DelegatingMethodAccessorImpl.invoke ( +) toAt Java.lang.reflect.Method.invoke ( +At org.junit.runners.model.frameworkmethod$1. Runreflectivecall ( -) -At Org.junit.Internal. ( the) theAt org.junit.runners.model.FrameworkMethod.invokeExplosively ( A) *At Org.junit.Internal. Runners.statements.RunBefores.evaluate ( -) $At Org.junit.Internal. Runners.statements.RunAfters.evaluate ( to)Panax NotoginsengAt Org.junit.runners.BlockJUnit4ClassRunner.runNotIgnored ( -) -At Org.junit.runners.BlockJUnit4ClassRunner.runChild ( in) theAt Org.junit.runners.BlockJUnit4ClassRunner.runChild ( the) +At org.junit.runners.parentrunner$3. Run ( AAt org.junit.runners.parentrunner$1. Schedule ( the) theAt Org.junit.runners.ParentRunner.runChildren ( +At org.junit.runners.parentrunner.access$ the( the) -At org.junit.runners.parentrunner$2. Evaluate ( $At ( $At ORG.ECLIPSE.JDT.Internal. ( the) -At ORG.ECLIPSE.JDT.Internal. ( -) -At ORG.ECLIPSE.JDT.Internal. junit.runner.RemoteTestRunner.runTests ( theAt ORG.ECLIPSE.JDT.Internal. junit.runner.RemoteTestRunner.runTests ( -At ORG.ECLIPSE.JDT.Internal. ( ORG.ECLIPSE.JDT.Internal. Junit.runner.RemoteTestRunner.main (

I am testing hbase for this problem when creating a data table, in short, window operation Hadoop will encounter this problem:

1 The first step: Configure the window's environment variables yourself (obviously it should be a hadoop_home problem.) If Hadoop_home is empty, it must be fullexename to Null\bin\winutils.exe. The workaround is simple, configure the environment variable,). 2 The second step: do not want to restart the computer can be added in the program:3System.setproperty ("Hadoop.home.dir","c:\\users\\administrator\\desktop\\hadoop-2.7.3\\hadoop-2.7.3");4 For example I added here:5 @Before6      Public voidinit () throws Exception {7System.setproperty ("Hadoop.home.dir","e:\\hadoop-2.6.4");8         //Configuration9Config =hbaseconfiguration.create ();Ten         //Zookeeper Address OneConfig.Set("Hbase.zookeeper.quorum","Master,slaver1,slaver2"); A         //Zookeeper Port -Config.Set("","2181"); -         //Create a connection with Factory mode theConnection =connectionfactory.createconnection (config); -         //getting table connections via connection -Table = connection.gettable (Tablename.valueof ("User")); - } +Step three: Go to -Download winutils.exe file copy to your E:\hadoop-2.6.4\ Bin directory inside.  + Fourth Step: Re-run the program is OK, problem solving. 

Stop more ... not locate executable null\bin\winutils.exe in the Hadoop binaries.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.