擅长:python、mysql、java
<p>如果不依赖<code>bash</code>进程替换,您也可以尝试</p>
<pre><code>hadoop fs -cat inputfile.txt | python test.py streamingfile.txt
</code></pre>
<p>它提供<code>streamingfile.txt</code>作为命令行参数,供<code>test.py</code>用作要打开的文件名,并在标准输入上提供<code>inputfile.txt</code>的内容。在</p>