启动Hive CLI

时间:2016-08-22 21:05:57

标签: hadoop exception hive

编辑:如果我关闭Wi-Fi,我可以毫无问题地启动Hive。这可能是有用的信息。

我在个人笔记本电脑上使用Hive 2.0.0进行伪分发模式。我最后一次使用Hive(几天前),一切都正常,就像往常一样。从那时到现在,我还没有触及我的Hive安装。我尝试进入CLI,现在收到以下错误:

Exception in thread "main" java.util.ServiceConfigurationError: org.apache.hadoop.fs.FileSystem: Provider tachyon.hadoop.TFS could not be instantiated
        at java.util.ServiceLoader.fail(ServiceLoader.java:232)
        at java.util.ServiceLoader.access$100(ServiceLoader.java:185)
        at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:384)
        at java.util.ServiceLoader$LazyIterator.next(ServiceLoader.java:404)
        at java.util.ServiceLoader$1.next(ServiceLoader.java:480)
        at org.apache.hadoop.fs.FileSystem.loadFileSystems(FileSystem.java:2563)
        at org.apache.hadoop.fs.FileSystem.getFileSystemClass(FileSystem.java:2574)
        at org.apache.hadoop.fs.FileSystem.createFileSystem(FileSystem.java:2591)
        at org.apache.hadoop.fs.FileSystem.access$200(FileSystem.java:91)
        at org.apache.hadoop.fs.FileSystem$Cache.getInternal(FileSystem.java:2630)
        at org.apache.hadoop.fs.FileSystem$Cache.get(FileSystem.java:2612)
        at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:370)
        at org.apache.hadoop.fs.FileSystem.get(FileSystem.java:169)
        at org.apache.hadoop.hive.ql.session.SessionState.start(SessionState.java:523)
        at org.apache.hadoop.hive.ql.session.SessionState.beginStart(SessionState.java:494)
        at org.apache.hadoop.hive.cli.CliDriver.run(CliDriver.java:709)
        at org.apache.hadoop.hive.cli.CliDriver.main(CliDriver.java:645)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.lang.reflect.Method.invoke(Method.java:497)
        at org.apache.hadoop.util.RunJar.run(RunJar.java:221)
        at org.apache.hadoop.util.RunJar.main(RunJar.java:136)
Caused by: java.lang.ExceptionInInitializerError
        at tachyon.Constants.<clinit>(Constants.java:328)
        at tachyon.hadoop.AbstractTFS.<clinit>(AbstractTFS.java:63)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
        at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
        at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
        at java.lang.reflect.Constructor.newInstance(Constructor.java:422)
        at java.lang.Class.newInstance(Class.java:442)
        at java.util.ServiceLoader$LazyIterator.nextService(ServiceLoader.java:380)
        ... 20 more
Caused by: java.lang.RuntimeException: java.net.UnknownHostException: unallocated.barefruit.co.uk: unallocated.barefruit.co.uk: unknown error
        at org.spark-project.guava.base.Throwables.propagate(Throwables.java:160)
        at tachyon.util.network.NetworkAddressUtils.getLocalIpAddress(NetworkAddressUtils.java:398)
        at tachyon.util.network.NetworkAddressUtils.getLocalHostName(NetworkAddressUtils.java:320)
        at tachyon.conf.TachyonConf.<init>(TachyonConf.java:122)
        at tachyon.conf.TachyonConf.<init>(TachyonConf.java:111)
        at tachyon.Version.<clinit>(Version.java:27)
        ... 28 more
Caused by: java.net.UnknownHostException: unallocated.barefruit.co.uk: unallocated.barefruit.co.uk: unknown error
        at java.net.InetAddress.getLocalHost(InetAddress.java:1505)
        at tachyon.util.network.NetworkAddressUtils.getLocalIpAddress(NetworkAddressUtils.java:355)
        ... 32 more
Caused by: java.net.UnknownHostException: unallocated.barefruit.co.uk: unknown error
        at java.net.Inet4AddressImpl.lookupAllHostAddr(Native Method)
        at java.net.InetAddress$2.lookupAllHostAddr(InetAddress.java:928)
        at java.net.InetAddress.getAddressesFromNameService(InetAddress.java:1323)
        at java.net.InetAddress.getLocalHost(InetAddress.java:1500)
        ... 33 more

我以前从未听说过Tachyon。什么是unallocated.barefruit.co.uk!?这很奇怪,互联网上没有太多我认为有用的东西。任何人都可以猜测为什么会发生这种情况?

1 个答案:

答案 0 :(得分:0)

正如评论中所提到的,问题出现是因为我的ISP的DNS解析器有一个重定向服务,可以将未知主机重定向到赞助页面。我还不清楚这与Hive有什么关系,但无论如何,问题是通过转到(在我的MacBook Pro上)系统偏好设置&gt;网络&gt;高级&gt; DNS并将8.8.8.8和8.8.4.4添加到列表中来解决的。 DNS服务器。

这样做,我正在使用Google的DNS解析服务代替我当前的DNS提供商。