GithubHelp home page GithubHelp logo

写入HDFS连接超时 about chunjun HOT 14 CLOSED

dtstack avatar dtstack commented on August 19, 2024
写入HDFS连接超时

from chunjun.

Comments (14)

yangsishu avatar yangsishu commented on August 19, 2024

你的hadoop是什么版本

from chunjun.

yangsishu avatar yangsishu commented on August 19, 2024

首先你要确认下你的hadoop 搭建是没问题,你可以写个demo 程序看写入hadoop有没有问题

from chunjun.

zhihui-ge avatar zhihui-ge commented on August 19, 2024

hadoop是2.7的,hadoop应该没有问题,flume可以写入数据到hdfs的,之前试过datax也是可以写入数据的

from chunjun.

yangsishu avatar yangsishu commented on August 19, 2024

"dfs.client.failover.proxy.DHTestCluster.ns1": "org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider" 这个配置错了吧应该是

"dfs.client.failover.proxy.DHTestCluster": "org.apache.hadoop.hdfs.server.namenode.ha.ConfiguredFailoverProxyProvider"

from chunjun.

zhihui-ge avatar zhihui-ge commented on August 19, 2024

这个问题后来我发现了,改了还是报那个错的,这个方法都没有进去HdfsTextOutputFormat.writeSingleRecordInternal

from chunjun.

yangsishu avatar yangsishu commented on August 19, 2024

com.dtstack.flinkx.hdfs.writer.HdfsOutputFormat.openInternal(HdfsOutputFormat.java:139) 是在这行访问hadoop报错了,这是初始化的动作

from chunjun.

yangsishu avatar yangsishu commented on August 19, 2024

应该还是配置的问题

from chunjun.

yangsishu avatar yangsishu commented on August 19, 2024

com.dtstack.flinkx.hdfs.writer.HdfsOutputFormat.openInternal 在这个方法设置个断点,debug下

from chunjun.

yangsishu avatar yangsishu commented on August 19, 2024

"dfs.namenode.rpc-address.DHTestCluster.nn1": "hadoop1.test.yunwei.puppet.dh:8020" 端口应该是9000吧

from chunjun.

zhihui-ge avatar zhihui-ge commented on August 19, 2024

端口是没有问题,使用ambari搭建的集群,配置的端口是8020

from chunjun.

yangsishu avatar yangsishu commented on August 19, 2024

你能把hdfs-site.xml 的配置贴出来吗

from chunjun.

zhihui-ge avatar zhihui-ge commented on August 19, 2024

粘贴了部分配置文件,job.json文件改成了9000端口,还是会去连接8020端口
`
dfs.namenode.rpc-address.xxxx.nn1
xxxx:8020

<property>
  <name>xxxxx.nn2</name>
  <value>xxxx:8020</value>
</property>`

from chunjun.

zhihui-ge avatar zhihui-ge commented on August 19, 2024

xxxxx

from chunjun.

zhihui-ge avatar zhihui-ge commented on August 19, 2024

可以了,有个配置写错了,不好意思耽误你的时间了

from chunjun.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.