Exception “: org.apache.hadoop.ipc.RpcException: RPC response exceeds maximum data length” from java

后端 未结 2 1092
误落风尘
误落风尘 2020-12-07 05:28

I am trying to connect to remote HDFS from Java program running in my desktop\'s Eclipse. I am able to connect. But get this Exception while trying to read data:

Cau

相关标签:
2条回答
  • 2020-12-07 06:22

    Check your core-site.xml :

    <property>
        <name>fs.default.name</name>
        <value>hdfs://host:port</value>
    </property>
    

    This port can be 9000 or 8020. Make sure that you are using the same port in your code or command

    0 讨论(0)
  • 2020-12-07 06:24

    try this solution: add this config to hdfs-site.xml

    <property>
         <name>ipc.maximum.data.length</name>
         <value>134217728</value>
    </property>
    
    0 讨论(0)
提交回复
热议问题