【问题标题】:Decompress .Z files in apache nifi在 apache nifi 中解压 .Z 文件
【发布时间】:2021-08-03 11:59:38
【问题描述】:

我在 Linux 系统上有一些 .Z 格式的文件。我想将未压缩的文件传输到 hdfs。

但 '''compresscontent''' 处理器不支持 .Z 格式。

在 nifi 中有没有办法做到这一点。

【问题讨论】:

  • 您需要使用ExecuteStreamCommand 来执行外部命令。将解压逻辑包装在 bash/shell/python 脚本中并使用 ExecuteStreamCommand 调用它

标签: compression apache-nifi


【解决方案1】:

如果您的 Linux 系统有 uncompress 命令,可能是运行 gzip 的脚本,那么您可以使用它来解压缩 .Z 文件。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2022-08-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多