FAILED: Hive Internal Error: java.lang.RuntimeException(Error while making MR scratch directory异常的解决

hive> select * from dummy;

FAILED: Hive Internal Error: java.lang.RuntimeException(Error while making MR scratch directory - check filesystem config (null))

java.lang.RuntimeException: Error while making MR scratch directory - check filesystem config (null)

        at org.apache.hadoop.hive.ql.Context.getMRScratchDir(Context.java:216)

        at org.apache.hadoop.hive.ql.Context.getMRTmpFileURI(Context.java:267)

        at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.getMetaData(SemanticAnalyzer.java:1063)

        at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(SemanticAnalyzer.java:7275)

        at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:243)

        at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:430)

        at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:337)

        at org.apache.hadoop.hive.ql.Driver.run(Driver.java:889)

        at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:255)

        at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:212)

        at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:403)

        at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:671)

        at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:554)

        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)

        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)

        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

        at java.lang.reflect.Method.invoke(Method.java:597)

        at org.apache.hadoop.util.RunJar.main(RunJar.java:197)

Caused by: java.lang.IllegalArgumentException: Wrong FS: hdfs://172.16.27.115:9000/opt/hadoop-0.20.2-cdh3u3/hadoop-root/hive_2012-04-25_16-38-44_851_5689096273896907591, expected: hdfs://namenode115:9000

        at org.apache.hadoop.fs.FileSystem.checkPath(FileSystem.java:410)

        at org.apache.hadoop.hdfs.DistributedFileSystem.checkPath(DistributedFileSystem.java:106)

        at org.apache.hadoop.fs.FileSystem.makeQualified(FileSystem.java:322)

        at org.apache.hadoop.hdfs.DistributedFileSystem.makeQualified(DistributedFileSystem.java:123)

        at org.apache.hadoop.hive.ql.Context.getScratchDir(Context.java:164)

        at org.apache.hadoop.hive.ql.Context.getMRScratchDir(Context.java:210)

        ... 17 more

进入 $hadoop_home vi conf/core-site.xml

之前配置是:

<property>

<name>fs.default.name</name>

<value>hdfs://172.16.27.115:9000</value>

</property>

查看vim /etc/hosts

172.16.27.115 namenode115

修改core-site.xml中ip为hostname

<property>

<name>fs.default.name</name>

<value>hdfs:// namenode115 :9000</value>

</property>

重启hadoop,在进入hive查询即可

时间: 2024-10-30 16:41:41

FAILED: Hive Internal Error: java.lang.RuntimeException(Error while making MR scratch directory异常的解决的相关文章

pdfview-java.lang.RuntimeException: error loading page

问题描述 java.lang.RuntimeException: error loading page 有没有大神遇到这个的问题呀,请问这个该怎么解决呢? File file = new File(path); pdfView.fromFile(file).defaultPage(0).load(); 本人QQ:903111844 解决方案 DecodingAsyncTask这个类贴出来看看,错误应该在这个类的58,31行附近 解决方案二: 58行: protected void onPostE

[ERROR]java.lang.NullPointerException while starting TM1 10.1.1 Database Server

Technote (troubleshooting) Problem(Abstract) While starting TM1 Database Server from TM1 10.1.1 Cognos Configuration user gets the following erorr  " [Cryptography] [ERROR]Java.lang.NullPointerException" Cause   Corrupt Cryptographic keys Resolv

我的Android进阶之旅------&amp;gt;Android中MediaRecorder.stop()报错 java.lang.RuntimeException: stop failed.

今天在调用MediaRecorder.stop(),报错了,java.lang.RuntimeException: stop failed. E/AndroidRuntime(7698): Cause by: java.lang.RuntimeException: stop failed. E/AndroidRuntime(7698): at android.media.MediaRecorder.stop(Native Method) E/AndroidRuntime(7698): at co

Error : java.lang.ClassNotFoundException: com.mysql.jdbc.Driver 在ubuntu下java连接

问题描述 重装了我的ubunttu之后,运行java程序想要连接mysql却出现了这个错误,我是按照网上的教程把mysql-connector-java-5.1.26-bin.jar放到了jdk1.8.0_25/jre/lib/ext目录下的,重装之前都还好用,重装之后居然不能用了,真是崩溃啊.是不是缺了扫描步骤,望大家告知Error:java.lang.ClassNotFoundException:com.mysql.jdbc.Driver 解决方案 解决方案二:Class.forName("

android studio Error:java.lang.OutOfMemoryError: GC overhead limit exceeded

android studio Error:java.lang.OutOfMemoryError: GC overhead limit exceeded 在app下的build.gradle中找到android,并添加如下配置 dexOptions { javaMaxHeapSize "4g" } 如: android { ... ... dexOptions { javaMaxHeapSize "4g" } ... ... }  

nutch Exception in thread &amp;amp;quot;main&amp;amp;quot; java.lang.RuntimeException: job failed: name=ge

问题描述 stone@stone-virtual-machine:~/apache-nutch-2.2.1/runtime/local$bin/nutchcrawlurls/seed.txt-dircrawl-depth3-topN5InjectorJob:Usingclassorg.apache.gora.memory.store.MemStoreastheGorastorageclass.InjectorJob:totalnumberofurlsrejectedbyfilters:0Inje

nutch 2.2.1 运行报错InjectorJob: java.lang.RuntimeException: job failed: name=inject

问题描述 在windows下的eclipse中运行报错,如下,求各位大神帮帮忙,本人小白一个,急急急急InjectorJob:startingat2014-06-2615:45:36InjectorJob:InjectingurlDir:urlsInjectorJob:Usingclassorg.apache.gora.memory.store.MemStoreastheGorastorageclass.****file:/D:/workspace/nutchTest/urlsInjectorJ

Android中调用startActivity结果导致:java.lang.RuntimeException: Unable to start activity ComponentInfo{xxx}

Android中调用startActivity结果导致:上网查了一下,总结如下: 第一种情况:java.lang.RuntimeException: Unable to start activity ComponentInfo{xxx}: java.lang.NullPointerException 错误代码: private int defaultDrawable=R.drawable.radio; private String defaultTitle=getString(R.string.

java.lang.ClassCastException: java.lang.NoClassDefFoundError cannot be cast to java.lang.RuntimeException

不是一个Exception,而是一个Error,要强制转成Exception类型,就出错了java.lang.NoClassDefFoundError  java.lang.RuntimeException