You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hugegraph.apache.org by GitBox <gi...@apache.org> on 2022/07/07 07:09:24 UTC
[GitHub] [incubator-hugegraph] waynecookie opened a new issue, #1922: [Question] 当我使用hdfs导入时提示 Failed to load, cause: java.net.UnknownHostException: abc
waynecookie opened a new issue, #1922:
URL: https://github.com/apache/incubator-hugegraph/issues/1922
### Problem Type (问题类型)
_No response_
### Before submit
- [X] 我已经确认现有的 [Issues](https://github.com/hugegraph/hugegraph/issues) 与 [FAQ](https://hugegraph.github.io/hugegraph-doc/guides/faq.html) 中没有相同 / 重复问题
### Environment (环境信息)
- Server Version: v0.12.x
- Backend: RocksDB x nodes, HDD or SSD
- OS: xx CPUs, xx G RAM, Centos 7.x
- Data Size: xx vertices, xx edges <!-- (like 1000W 点, 9000W 边) -->
### Your Question (问题描述)
请教一下
从hdfs(设置了ha)中导入数据,fs.defaultFS 为 hdfs://abc,
当我执行导入时提示
```
Failed to load, cause: java.net.UnknownHostException: abc
```
1、请问这是什么原因?
2、当我改为hdfs://ip:port模式时可以了,那一定需要这样的模式吗?发生故障时,ip 可能会变为另一个stanby状态的ip
### Vertex/Edge example (问题点 / 边数据举例)
_No response_
### Schema [VertexLabel, EdgeLabel, IndexLabel] (元数据结构)
_No response_
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-hugegraph] waynecookie commented on issue #1922: [Question] 当我使用hdfs导入时提示 Failed to load, cause: java.net.UnknownHostException: abc
Posted by GitBox <gi...@apache.org>.
waynecookie commented on issue #1922:
URL: https://github.com/apache/incubator-hugegraph/issues/1922#issuecomment-1177235839
> UnknownHostException是指无法解析主机名,可在命令行手动检查下主机名是否可解析。如果你例子中的abc指的是机器名,比如“host1:8020”,请确保程序运行的机器可**ping**通HDFS的机器`ping host1`
不是机器名,是可以随意的;
```
<property>
<name>fs.defaultFS</name>
<value>hdfs://abc:8020</value>
</property>
```
如果这么设置的话,就可以是机器名、域名、ip等
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-hugegraph] javeme commented on issue #1922: [Question] 当我使用hdfs导入时提示 Failed to load, cause: java.net.UnknownHostException: abc
Posted by GitBox <gi...@apache.org>.
javeme commented on issue #1922:
URL: https://github.com/apache/incubator-hugegraph/issues/1922#issuecomment-1177200461
可以是域名或机器名,但必须可解析,是否添加"abc"到hosts配置文件中了?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-hugegraph] javeme commented on issue #1922: [Question] 当我使用hdfs导入时提示 Failed to load, cause: java.net.UnknownHostException: abc
Posted by GitBox <gi...@apache.org>.
javeme commented on issue #1922:
URL: https://github.com/apache/incubator-hugegraph/issues/1922#issuecomment-1177231931
UnknownHostException是指无法解析主机名,可在命令行手动检查下主机名是否可解析。如果你例子中的abc指的是机器名,比如“host1:8020”,请确保程序运行的机器可**ping**通HDFS的机器`ping host1`
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-hugegraph] waynecookie commented on issue #1922: [Question] 当我使用hdfs导入时提示 Failed to load, cause: java.net.UnknownHostException: abc
Posted by GitBox <gi...@apache.org>.
waynecookie commented on issue #1922:
URL: https://github.com/apache/incubator-hugegraph/issues/1922#issuecomment-1177205599
> 可以是域名或机器名,但必须可解析,是否添加"abc"到hosts配置文件中了?
你好像没有理解我的意思,或者我没有懂你的意思
这个abc是不固定的
设置如下:
```
<property>
<name>fs.defaultFS</name>
<value>hdfs://abc</value>
</property>
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
[GitHub] [incubator-hugegraph] waynecookie commented on issue #1922: [Question] 当我使用hdfs导入时提示 Failed to load, cause: java.net.UnknownHostException: abc
Posted by GitBox <gi...@apache.org>.
waynecookie commented on issue #1922:
URL: https://github.com/apache/incubator-hugegraph/issues/1922#issuecomment-1177200754
您好,已收到您的邮件
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@hugegraph.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org