gpt4 book ai didi

Hadoop Pig fs 测试命令

转载 作者:可可西里 更新时间:2023-11-01 16:47:26 26 4
gpt4 key购买 nike

想知道这行是什么意思?四处搜索但找不到此命令的引用,

Pig.fs("test -e " + pathToCheck) == 0:

提前致谢,林

最佳答案

使用命令行工具并运行hadoop fs -help 得到:

-test -[defsz] <path> :
Answer various questions about <path>, with result via exit status.
-d return 0 if <path> is a directory.
-e return 0 if <path> exists.
-f return 0 if <path> is a file.
-s return 0 if file <path> is greater than zero bytes in size.
-z return 0 if file <path> is zero bytes in size, else return 1.

关于Hadoop Pig fs 测试命令,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36001799/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com