You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@kylin.apache.org by "Khakhkhar, Dipesh" <dk...@ebay.com> on 2016/01/18 23:42:27 UTC
Setting up dev environment - Error running tests
Hi,
I’m setting up dev environment as mentioned here
I’m using HDP sandbox
I ran test like this
mvn test -Dtest=org.apache.kylin.job.BuildCubeWithEngineTest -DfailIfNoTests=false -Dhdp.version=2.3.2 -P sandbox
But it go the following exception
016-01-18 14:03:44,471 INFO [main] common.KylinConfig (KylinConfig.java:getKylinProperties(592)) - Use KYLIN_CONF=../examples/test_case_data/sandbox
[root@127.0.0.1<ma...@127.0.0.1>] Execute command: rm -rf /tmp/kylin
Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.724 sec <<< FAILURE! - in org.apache.kylin.job.BuildCubeWithEngineTest
test(org.apache.kylin.job.BuildCubeWithEngineTest) Time elapsed: 0.585 sec <<< ERROR!
java.io.IOException: Auth cancel
at com.jcraft.jsch.Session.connect(Session.java:511)
at com.jcraft.jsch.Session.connect(Session.java:183)
at org.apache.kylin.common.util.SSHClient.execCommand(SSHClient.java:271)
at org.apache.kylin.common.util.CliCommandExecutor.runRemoteCommand(CliCommandExecutor.java:102)
at org.apache.kylin.common.util.CliCommandExecutor.execute(CliCommandExecutor.java:86)
at org.apache.kylin.common.util.CliCommandExecutor.execute(CliCommandExecutor.java:78)
at org.apache.kylin.job.DeployUtil.execCliCommand(DeployUtil.java:123)
at org.apache.kylin.job.DeployUtil.initCliWorkDir(DeployUtil.java:55)
at org.apache.kylin.job.BuildCubeWithEngineTest.before(BuildCubeWithEngineTest.java:99)
When I looked at the source code – line #270, class SSHClient.java – I found there is a call (new JSchSession()) to create Session Object and it has following code on line #343
Session session = jsch.getSession(username, hostname, 22);
It tries to connect to port 22 but HDP sandbox listens on 2222 and I think that’s why it is throwing above error.
Please correct me if I have missed anything in the environment or this needs to be fixed i.e. connect to port 2222 in case of HDP sandbox otherwise connect to port 22
Thanks.
-DK
Re: Setting up dev environment - Error running tests
Posted by hongbin ma <ma...@apache.org>.
checkout this https://issues.apache.org/jira/browse/KYLIN-393
On Tue, Jan 19, 2016 at 6:42 AM, Khakhkhar, Dipesh <dk...@ebay.com>
wrote:
> Hi,
>
> I’m setting up dev environment as mentioned here
>
> I’m using HDP sandbox
>
> I ran test like this
> mvn test -Dtest=org.apache.kylin.job.BuildCubeWithEngineTest
> -DfailIfNoTests=false -Dhdp.version=2.3.2 -P sandbox
>
> But it go the following exception
>
>
> 016-01-18 14:03:44,471 INFO [main] common.KylinConfig
> (KylinConfig.java:getKylinProperties(592)) - Use
> KYLIN_CONF=../examples/test_case_data/sandbox
>
> [root@127.0.0.1<ma...@127.0.0.1>] Execute command: rm -rf /tmp/kylin
>
> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.724 sec
> <<< FAILURE! - in org.apache.kylin.job.BuildCubeWithEngineTest
>
> test(org.apache.kylin.job.BuildCubeWithEngineTest) Time elapsed: 0.585
> sec <<< ERROR!
>
> java.io.IOException: Auth cancel
>
> at com.jcraft.jsch.Session.connect(Session.java:511)
>
> at com.jcraft.jsch.Session.connect(Session.java:183)
>
> at org.apache.kylin.common.util.SSHClient.execCommand(SSHClient.java:271)
>
> at
> org.apache.kylin.common.util.CliCommandExecutor.runRemoteCommand(CliCommandExecutor.java:102)
>
> at
> org.apache.kylin.common.util.CliCommandExecutor.execute(CliCommandExecutor.java:86)
>
> at
> org.apache.kylin.common.util.CliCommandExecutor.execute(CliCommandExecutor.java:78)
>
> at org.apache.kylin.job.DeployUtil.execCliCommand(DeployUtil.java:123)
>
> at org.apache.kylin.job.DeployUtil.initCliWorkDir(DeployUtil.java:55)
>
> at
> org.apache.kylin.job.BuildCubeWithEngineTest.before(BuildCubeWithEngineTest.java:99)
>
>
> When I looked at the source code – line #270, class SSHClient.java – I
> found there is a call (new JSchSession()) to create Session Object and it
> has following code on line #343
>
>
> Session session = jsch.getSession(username, hostname, 22);
>
>
> It tries to connect to port 22 but HDP sandbox listens on 2222 and I think
> that’s why it is throwing above error.
>
>
> Please correct me if I have missed anything in the environment or this
> needs to be fixed i.e. connect to port 2222 in case of HDP sandbox
> otherwise connect to port 22
>
>
> Thanks.
>
> -DK
>
--
Regards,
*Bin Mahone | 马洪宾*
Apache Kylin: http://kylin.io
Github: https://github.com/binmahone