尝试使用Windows中的KnoxShell示例(使用Cmder作为外壳仿真器)。当执行以下命令时,shell锁定,没有可用的提示符,也没有发生任何事情。我只能关闭Shell。
这是Windows特有的吗?
λ gradlew.bat -q --no-daemon shell
This is a gradle Application Shell.
You can import your application classes and act on them.
import org.apache.hadoop.gateway.shell.Hadoop;import
org.apache.hadoop.gateway.shell.hdfs.Hdfs;import org.apache.hadoop.gateway.shell.job.Job;import org.apache.hadoop.gateway.shell.workflow.Workflow;import org.apache.hadoop.gateway.shell.yarn.Yarn;import groovy.json.JsonSlurper;import java.util.concurrent.TimeUnit;
===> [import org.apache.hadoop.gateway.shell.Hadoop;import org.apache.hadoop.gateway.shell.hdfs.Hdfs;import org.apache.hadoop.gateway.shell.job.Job;import org.apache.hadoop.gateway.shell.workflow.Workflow;import org.apache.hadoop.gateway.shell.yarn.Yarn;import groovy.json.JsonSlurper;import java.util.concurrent.TimeUnit;]
session = Hadoop.login( https://bi-hadoop-prod-xxxx.bi.services.us-south.bluemix.net:8443/gateway/default, user, password);
slurper = new JsonSlurper();
Groovy Shell (1.8.3, JVM: 1.8.0_51)
Type 'help' or '\h' for help.
-------------------------------------------------------------------------------
groovy:002> hadoop fs -ls /发布于 2016-08-12 14:54:40
我已经在Windows机器上尝试了这个例子,它对我来说也是挂起的。
我已经更新了自述文件,声明此示例不支持Windows,并向构建脚本添加了一些逻辑,以便在Windows计算机上运行该示例时中止该示例。
https://stackoverflow.com/questions/38903670
复制相似问题