在Windows下MyEclipse運行JAVA程式串連HBASE讀取資料出錯

來源:互聯網
上載者:User

標籤:from   string   code   execution   not   資料   exec   windows64   eve   

運行環境:Hadoop-2.5.0+Hbase-0.98.6

問題描述:

15 / 06 / 11 15 : 35 : 50 ERROR Shell: Failed to locate the winutils binary in the hadoop binary path 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.security.SecurityUtil.getAuthenticationMethod(SecurityUtil.java: 611 )      at org.apache.hadoop.security.UserGroupInformation.initialize(UserGroupInformation.java: 272 )      at org.apache.hadoop.security.UserGroupInformation.ensureInitialized(UserGroupInformation.java: 260 )      at org.apache.hadoop.security.UserGroupInformation.loginUserFromSubject(UserGroupInformation.java: 790 )      at org.apache.hadoop.security.UserGroupInformation.getLoginUser(UserGroupInformation.java: 760 )      at org.apache.hadoop.security.UserGroupInformation.getCurrentUser(UserGroupInformation.java: 633 )      at org.apache.spark.util.Utils$$anonfun$getCurrentUserName$ 1 .apply(Utils.scala: 2001 )      at org.apache.spark.util.Utils$$anonfun$getCurrentUserName$ 1 .apply(Utils.scala: 2001 )      at scala.Option.getOrElse(Option.scala: 120 )      at org.apache.spark.util.Utils$.getCurrentUserName(Utils.scala: 2001 )      at org.apache.spark.SecurityManager.<init>(SecurityManager.scala: 207 )      at org.apache.spark.SparkEnv$.create(SparkEnv.scala: 218 )      at org.apache.spark.SparkEnv$.createDriverEnv(SparkEnv.scala: 163 )      at org.apache.spark.SparkContext.createSparkEnv(SparkContext.scala: 269 )      at org.apache.spark.SparkContext.<init>(SparkContext.scala: 272 )      at org.apache.spark.SparkContext.<init>(SparkContext.scala: 154 )      at SparkFromHbase$.main(SparkFromHbase.scala: 15 )      at SparkFromHbase.main(SparkFromHbase.scala)      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java: 57 )      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java: 43 )      at java.lang.reflect.Method.invoke(Method.java: 606 )      at com.intellij.rt.execution.application.AppMain.main(AppMain.java: 134 ) 解答:參考http://www.cnblogs.com/hyl8218/p/5492450.html問題解決,輸出結果:

17/08/26 22:44:32 INFO client.HConnectionManager$HConnectionImplementation: Closing zookeeper sessionid=0x15e1ee0ec4c000e
colfam1:q1 ->value-1
17/08/26 22:44:32 INFO zookeeper.ZooKeeper: Session: 0x15e1ee0ec4c000e closed
17/08/26 22:44:32 INFO zookeeper.ClientCnxn: EventThread shut down

 

windows64位平台的hadoop2 5 0版本以上外掛程式包 hadoop dll winutils exe :http://download.csdn.net/download/lwf2510/8676209

在Windows下MyEclipse運行JAVA程式串連HBASE讀取資料出錯

相關文章

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

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.