zoukankan      html  css  js  c++  java
  • org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:9083.

    今天遇到了这个问题:

    org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:9083.
            at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:109)
            at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:91)
            at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:87)
            at org.apache.hadoop.hive.metastore.utils.SecurityUtils.getServerSocket(SecurityUtils.java:253)
            at org.apache.hadoop.hive.metastore.HiveMetaStore.startMetaStore(HiveMetaStore.java:8968)
            at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:8843)
            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:498)
            at org.apache.hadoop.util.RunJar.run(RunJar.java:318)
            at org.apache.hadoop.util.RunJar.main(RunJar.java:232)
    Caused by: java.net.BindException: Address already in use (Bind failed)
            at java.net.PlainSocketImpl.socketBind(Native Method)
            at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
            at java.net.ServerSocket.bind(ServerSocket.java:375)
            at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:106)
            ... 11 more
    Exception in thread "main" org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:9083.
            at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:109)
            at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:91)
            at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:87)
            at org.apache.hadoop.hive.metastore.utils.SecurityUtils.getServerSocket(SecurityUtils.java:253)
            at org.apache.hadoop.hive.metastore.HiveMetaStore.startMetaStore(HiveMetaStore.java:8968)
            at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:8843)
            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:498)
            at org.apache.hadoop.util.RunJar.run(RunJar.java:318)
            at org.apache.hadoop.util.RunJar.main(RunJar.java:232)
    Caused by: java.net.BindException: Address already in use (Bind failed)
            at java.net.PlainSocketImpl.socketBind(Native Method)
            at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)
            at java.net.ServerSocket.bind(ServerSocket.java:375)
            at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:106)
            ... 11 more

    网上看是kill -9 端口

    但是我jps的时候没有发现

     原因是我没有用root账户登录,在hadoop的账户下,jps不能出现,登录root就好了

     

    org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:9083.        at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:109)        at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:91)        at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:87)        at org.apache.hadoop.hive.metastore.utils.SecurityUtils.getServerSocket(SecurityUtils.java:253)        at org.apache.hadoop.hive.metastore.HiveMetaStore.startMetaStore(HiveMetaStore.java:8968)        at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:8843)        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:498)        at org.apache.hadoop.util.RunJar.run(RunJar.java:318)        at org.apache.hadoop.util.RunJar.main(RunJar.java:232)Caused by: java.net.BindException: Address already in use (Bind failed)        at java.net.PlainSocketImpl.socketBind(Native Method)        at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)        at java.net.ServerSocket.bind(ServerSocket.java:375)        at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:106)        ... 11 moreException in thread "main" org.apache.thrift.transport.TTransportException: Could not create ServerSocket on address 0.0.0.0/0.0.0.0:9083.        at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:109)        at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:91)        at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:87)        at org.apache.hadoop.hive.metastore.utils.SecurityUtils.getServerSocket(SecurityUtils.java:253)        at org.apache.hadoop.hive.metastore.HiveMetaStore.startMetaStore(HiveMetaStore.java:8968)        at org.apache.hadoop.hive.metastore.HiveMetaStore.main(HiveMetaStore.java:8843)        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:498)        at org.apache.hadoop.util.RunJar.run(RunJar.java:318)        at org.apache.hadoop.util.RunJar.main(RunJar.java:232)Caused by: java.net.BindException: Address already in use (Bind failed)        at java.net.PlainSocketImpl.socketBind(Native Method)        at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:387)        at java.net.ServerSocket.bind(ServerSocket.java:375)        at org.apache.thrift.transport.TServerSocket.<init>(TServerSocket.java:106)        ... 11 more

  • 相关阅读:
    「ruby/MiniMagick」用MiniMagick处理图片
    「thunar」给thunar增加搜索文件功能
    Software--Architecture--SOA Factory
    DataArchitecture--数据结构与算法 (Java)
    Software--Architecture--SOA 面向服务体系结构
    Software--Develop -- WCF Setting
    Industry--OPC UA (OPC Unified Architecture) 统一架构
    Software--IoC 依赖倒置 控制反转
    虚拟表dual。字符串函数UPPER,LOWER。&变量。INITCAP,LENGTH,SUBSTR
    运算符关键字。数据区别大小写。日期范围。判空的两种写法。NOT IN的两种写法。IN范围可含NULL,但NOT IN值范围不能含NULL。
  • 原文地址:https://www.cnblogs.com/j-y-s/p/15390339.html
Copyright © 2011-2022 走看看