在win10的eclipse上运行一段代码需要用到hadoop。一开始报错:Could not locate executable null\bin\winutils.exe in the Hadoop binaries
按照指导下载了winutils.exe 并且配置了环境变量。再运行程序又报错:
Exception in thread "main" java.lang.RuntimeException: java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: ---------
at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:522)
at org.apache.spark.sql.hive.client.ClientWrapper.(ClientWrapper.scala:171)
at org.apache.spark.sql.hive.HiveContext.executionHive$lzycompute(HiveContext.scala:162)
at org.apache.spark.sql.hive.HiveContext.executionHive(HiveContext.scala:160)
at org.apache.spark.sql.hive.HiveContext.(HiveContext.scala:167)
at org.apache.spark.sql.CarbonContext.(CarbonContext.scala:34)
at org.carbondata.examples.util.InitForExamples$.createCarbonContext(InitForExamples.scala:42)
at org.carbondata.examples.CarbonExample$.main(CarbonExample.scala:26)
at org.carbondata.examples.CarbonExample.main(CarbonExample.scala)
Caused by: java.lang.RuntimeException: The root scratch dir: /tmp/hive on HDFS should be writable. Current permissions are: ---------
at org.apache.hadoop.hive.ql.session.SessionState.createRootHDFSDir(SessionState.java:612)
at org.apache.hadoop.hive.ql.session.SessionState.createSessionDirs(SessionState.java:554)
at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:508)
... 8 more
按照指导在win10 cmd窗口后运行 winutils.exe chmod 777 /tmp/hive
报如下错误:
ChangeFileModeByMask error (3): ???????????
哪位大神现身救助