@@ -0,0 +1,310 @@
+package com.dtstack.jlogstash;%0A%0Aimport java.io.IOException;%0A%0A/**%0A * Created by sishu.yss on 2018/11/17.%0A */%0Apublic class Test %7B%0A%0A    public static void main(String%5B%5D args) throws IOException %7B%0A        String%5B%5D cmd = %7B %22sh%22, %22-c%22, %22ls %3E /Users/sishuyss/1.txt%22 %7D;%0A        Runtime.getRuntime().exec(cmd);%0A    %7D%0A%7D%0A

modify hdfs