[英]HDFS Path for Spark Submit and Flink on YARN
i work with cloudera live vm, there i have a hadoop and spral standalone cluster. 我使用cloudera live vm,我有一个hadoop和spral独立集群。 now i want submit my jobs with spark submit and flink run scripts.
现在我想用spark提交和flink运行脚本提交我的工作。 this works, too.
这也有效。 but my apps can find the path to input and outputs files in the hdfs.
但我的应用程序可以在hdfs中找到输入和输出文件的路径。 i set the path like: hdfs://127.0.0.1:50010/user/cloudera/outputs the information from the port i get from this:
我设置路径如:hdfs://127.0.0.1:50010 / user / cloudera /输出来自我得到的端口的信息:
how to set the path for the hdfs in java?? 如何在java中设置hdfs的路径?
best regards, paul 最好的问候,保罗
You don't have to set the path to the DataNode host. 您不必设置DataNode主机的路径。 On the "Overview" page, you'll see the connection information for the NameNode, and that is also where you have to connect to.
在“概述”页面上,您将看到NameNode的连接信息,这也是您必须连接的位置。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.