Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在尝试使用多个 hadoop 命令编写批处理文件。但是当我从 Hadoop 命令行执行它时,它只执行一个命令(第一个)并忽略其余命令。有人可以帮我将多个命令作为批处理文件执行。
谢谢。
在新的 cmd 实例中执行每个 hadoop 命令,如下所示:
cmd /C "hadoop fs -mkdir hdfs://localhost/mydir" cmd /C "hadoop fs -ls hdfs://localhost"