[ 
https://issues.apache.org/jira/browse/KYLIN-1598?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15255185#comment-15255185
 ] 

Dong Li edited comment on KYLIN-1598 at 4/23/16 7:38 AM:
---------------------------------------------------------

Yes, the article explained the cause. Let me give an english version here:
Official release of Apache Hadoop doesn't include some exe files which are 
required on windows, like winutils.exe. So it's needed to compile from source, 
and there're some ready binaries on github. Windows developers can download 
according to hadoop versions, and set HADOOP_HOME.

For this UT, the wordaround steps are:
1. Download zip package from https://github.com/steveloughran/winutils
2. Extract to local folder and set HADOOP_HOME, then add %HADOOP_HOME%/bin to 
PATH. Mention that, hadoop jar version is 2.6.0 in master branch, so remember 
to choose right version.
3. Open a new command line, run the test and it will pass.


was (Author: lidong_sjtu):
Yes, the article explained the cause. Let me give an english version here:
Official release of Apache Hadoop doesn't include some exe files which are 
required on windows, like winutils.exe. So it's needed to compile from source, 
and there're some ready binaries on github. Windows developers can download 
according to hadoop versions, and set HADOOP_HOME.

For this UT, the wordaround steps are:
1. Download zip package from https://github.com/steveloughran/winutils
2. Extract to local folder and set HADOOP_HOME. Mention that, hadoop jar 
version is 2.6.0 in master branch, so remember to choose right version.
3. Open a new command line, run the test and it will pass.

> cannot run complete UT at dev machine
> -------------------------------------
>
>                 Key: KYLIN-1598
>                 URL: https://issues.apache.org/jira/browse/KYLIN-1598
>             Project: Kylin
>          Issue Type: Bug
>            Reporter: hongbin ma
>            Assignee: hongbin ma
>
> seem like you can't run UT on any machine, it need 
> "mapreduce.application.classpath" and hive and hbase dependency, detail as 
> follow:
> 2016-04-20 12:02:29,074 INFO  [main] common.AbstractHadoopJob 
> (AbstractHadoopJob.java:setJobClasspath(173)) - Didn't find 
> mapreduce.application.classpath in job configuration, will run 'mapred 
> classpath' to get the default value.
> 'mapred' is not recognized as an internal or external command,
> operable program or batch file.
> 2016-04-20 12:02:29,264 ERROR [main] common.AbstractHadoopJob 
> (AbstractHadoopJob.java:getDefaultMapRedClasspath(361)) - Failed to run: 
> 'mapred classpath'.
> java.io.IOException: OS command error exit with 1 -- mapred classpath
> 'mapred' is not recognized as an internal or external command,
> operable program or batch file.
>       at 
> org.apache.kylin.common.util.CliCommandExecutor.execute(CliCommandExecutor.java:94)
>       at 
> org.apache.kylin.common.util.CliCommandExecutor.execute(CliCommandExecutor.java:80)
>       at 
> org.apache.kylin.engine.mr.common.AbstractHadoopJob.getDefaultMapRedClasspath(AbstractHadoopJob.java:358)
>       at 
> org.apache.kylin.engine.mr.common.AbstractHadoopJob.setJobClasspath(AbstractHadoopJob.java:174)
>       at 
> org.apache.kylin.storage.hbase.steps.RangeKeyDistributionJob.run(RangeKeyDistributionJob.java:71)
>       at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:70)
>       at 
> org.apache.kylin.storage.hbase.steps.RangeKeyDistributionJobTest.testJob(RangeKeyDistributionJobTest.java:68)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:497)
>       at 
> org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:47)
>       at 
> org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
>       at 
> org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:44)
>       at 
> org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
>       at 
> org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:26)
>       at 
> org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:27)
>       at org.junit.runners.ParentRunner.runLeaf(ParentRunner.java:271)
>       at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:70)
>       at 
> org.junit.runners.BlockJUnit4ClassRunner.runChild(BlockJUnit4ClassRunner.java:50)
>       at org.junit.runners.ParentRunner$3.run(ParentRunner.java:238)
>       at org.junit.runners.ParentRunner$1.schedule(ParentRunner.java:63)
>       at org.junit.runners.ParentRunner.runChildren(ParentRunner.java:236)
>       at org.junit.runners.ParentRunner.access$000(ParentRunner.java:53)
>       at org.junit.runners.ParentRunner$2.evaluate(ParentRunner.java:229)
>       at org.junit.runners.ParentRunner.run(ParentRunner.java:309)
>       at org.junit.runner.JUnitCore.run(JUnitCore.java:160)
>       at 
> com.intellij.junit4.JUnit4IdeaTestRunner.startRunnerWithArgs(JUnit4IdeaTestRunner.java:78)
>       at 
> com.intellij.rt.execution.junit.JUnitStarter.prepareStreamsAndStart(JUnitStarter.java:212)
>       at 
> com.intellij.rt.execution.junit.JUnitStarter.main(JUnitStarter.java:68)
>       at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>       at 
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
>       at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>       at java.lang.reflect.Method.invoke(Method.java:497)
>       at com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to