AnsweredAssumed Answered

Hive throws wrong FS error

Question asked by siddharth1988 on Jul 8, 2013
Latest reply on Jul 9, 2013 by siddharth1988
Hi team,
I encounter these errors while running simple select SQL in hive.
Can anybody throw some light on this, as to why does this actually happen and quick solution for this ?

**masked the IP address for security reasons**

 Error: FAILED: Hive Internal Error: java.lang.IllegalArgumentException(Wrong FS: maprfs://10.xx.xx.xx:7222/axp/score2/aet/data/scratchDir/hive_2013-07-06_18-15-06_793_5024150213106083738, expected: maprfs:///) java.lang.IllegalArgumentException: Wrong FS: maprfs://10.xx.xx.xx:7222/axp/score2/aet/data/scratchDir/hive_2013-07-06_18-15-06_793_5024150213106083738, expected: maprfs:/// at org.apache.hadoop.fs.FileSystem.checkPath(FileSystem.java:417) at org.apache.hadoop.fs.FileSystem.makeQualified(FileSystem.java:329) at org.apache.hadoop.hive.ql.Context.getScratchDir(Context.java:164) at org.apache.hadoop.hive.ql.Context.getExternalScratchDir(Context.java:222) at org.apache.hadoop.hive.ql.Context.getExternalTmpFileURI(Context.java:315) at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genFileSinkPlan(SemanticAnalyzer.java:4049) at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genPostGroupByBodyPlan(SemanticAnalyzer.java:6205) at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genBodyPlan(SemanticAnalyzer.java:6136) at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.genPlan(SemanticAnalyzer.java:6762) at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(SemanticAnalyzer.java:7531) at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSemanticAnalyzer.java:243) at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:431) at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:336) at org.apache.hadoop.hive.ql.Driver.run(Driver.java:909) at org.apache.hadoop.hive.cli.CliDriver.processLocalCmd(CliDriver.java:258) at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:215) at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:406) at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:341) at org.apache.hadoop.hive.cli.CliDriver.processReader(CliDriver.java:439) at org.apache.hadoop.hive.cli.CliDriver.processFile(CliDriver.java:449) at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:647) at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:557) 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)

Outcomes