You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hive.apache.org by shangan <sh...@corp.kaixin001.com> on 2010/08/18 10:42:27 UTC

can't use ip in fs.default.name

Using ip in hadoop configuration for the field fs.default.name will bring error in hive cli while using hostname will work all right,could anybody explain this ? the following is the log:

2010-07-29 11:15:54,022 ERROR ql.Driver (SessionState.java:printError(279)) - FA
ILED: Unknown exception : Wrong FS: hdfs://192.168.0.153:9000/tmp/hive-shangan/6
37491376, expected: hdfs://vm153:9000
java.lang.IllegalArgumentException: Wrong FS: hdfs://192.168.0.153:9000/tmp/hive
-shangan/637491376, expected: hdfs://vm153:9000
        at org.apache.hadoop.fs.FileSystem.checkPath(FileSystem.java:310)
        at org.apache.hadoop.hdfs.DistributedFileSystem.checkPath(DistributedFil
eSystem.java:99)
        at org.apache.hadoop.hdfs.DistributedFileSystem.getPathName(DistributedF
ileSystem.java:155)
        at org.apache.hadoop.hdfs.DistributedFileSystem.mkdirs(DistributedFileSy
stem.java:262)
        at org.apache.hadoop.fs.FileSystem.mkdirs(FileSystem.java:1120)
        at org.apache.hadoop.hive.ql.Context.makeMRScratchDir(Context.java:122)
        at org.apache.hadoop.hive.ql.Context.getMRScratchDir(Context.java:180)
        at org.apache.hadoop.hive.ql.Context.getMRTmpFileURI(Context.java:248)
        at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.getMetaData(Semantic
Analyzer.java:784)
        at org.apache.hadoop.hive.ql.parse.SemanticAnalyzer.analyzeInternal(Sema
nticAnalyzer.java:4422)
        at org.apache.hadoop.hive.ql.parse.BaseSemanticAnalyzer.analyze(BaseSema
nticAnalyzer.java:76)
        at org.apache.hadoop.hive.ql.Driver.compile(Driver.java:249)
        at org.apache.hadoop.hive.ql.Driver.run(Driver.java:281)
        at org.apache.hadoop.hive.cli.CliDriver.processCmd(CliDriver.java:123)
        at org.apache.hadoop.hive.cli.CliDriver.processLine(CliDriver.java:181)
        at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:287)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.
java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:597)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:156)

2010-08-18 



shangan