Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Cloudera Altus Director - problem with java installation during deployment creation via REST API

Highlighted

Cloudera Altus Director - problem with java installation during deployment creation via REST API

Explorer

Hi,

 

    I'm using Cloudera Altus Director REST API to create Cloudera cluster in AWS. It works when I create deployment using "enableEnterpriseTrial": false, but when I want to use Cloudera Trial and set it to "true" I have error as below:

 

 

2019-07-10 08:38:17.771 +0000] INFO [io-thread-7] - - - - - ssh:10.0.3.193:22: oracle-j2sdk1.8-1.8.0+update181-1.x86_64: [Errno 256] No more mirrors to try.
[2019-07-10 08:38:17.772 +0000] ERROR [p-16c96089d393-DefaultBootstrapDeploymentJob] af5b5852-2670-4930-a2ab-ba19eadb6025 POST /api/v12/environments/dev/deployments com.cloudera.launchpad.pipeline.ssh.SshJobFailFastWithOutputLogging - com.cloudera.launchpad.pipeline.util.PipelineRunner: Attempt to execute job failed
com.cloudera.launchpad.common.ssh.SshException: Script execution failed with code 1. Script: sudo yum -C list installed 'oracle-j2sdk1.8' 2>&1 > /dev/null && echo "Package oracle-j2sdk1.8 is already installed and upgrades are not forced. Skipping." || sudo yum install -d 1 --assumeyes 'oracle-j2sdk1.8'
at com.cloudera.launchpad.pipeline.ssh.SshJobFailFastWithOutputLogging.run(SshJobFailFastWithOutputLogging.java:46)
at com.cloudera.launchpad.pipeline.ssh.SshJobFailFastWithOutputLogging.run(SshJobFailFastWithOutputLogging.java:28)
at com.cloudera.launchpad.pipeline.job.Job3.runUnchecked(Job3.java:32)
at com.cloudera.launchpad.pipeline.job.Job3$$FastClassBySpringCGLIB$$54178503.invoke(<generated>)
at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:746)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:163)
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:88)
at com.cloudera.launchpad.pipeline.PipelineJobProfiler.profileJobRun(PipelineJobProfiler.java:60)
at sun.reflect.GeneratedMethodAccessor233.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:498)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:644)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:633)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:185)
at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:688)
at com.cloudera.launchpad.pipeline.ssh.SshJobFailFastWithOutputLogging$$EnhancerBySpringCGLIB$$cb095bb8.runUnchecked(<generated>)
at com.cloudera.launchpad.pipeline.util.PipelineRunner$JobCallable.call(PipelineRunner.java:202)
at com.cloudera.launchpad.pipeline.util.PipelineRunner$JobCallable.call(PipelineRunner.java:173)
at com.github.rholder.retry.AttemptTimeLimiters$NoAttemptTimeLimit.call(AttemptTimeLimiters.java:78)
at com.github.rholder.retry.Retryer.call(Retryer.java:160)
at com.cloudera.launchpad.pipeline.util.PipelineRunner.attemptMultipleJobExecutionsWithRetries(PipelineRunner.java:136)
at com.cloudera.launchpad.pipeline.DatabasePipelineRunner.doRun(DatabasePipelineRunner.java:201)
at com.cloudera.launchpad.pipeline.DatabasePipelineRunner.run(DatabasePipelineRunner.java:141)
at com.cloudera.launchpad.ExceptionHandlingRunnable.run(ExceptionHandlingRunnable.java:57)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)

 

Thanks in advance for any advices.

 

Regards,

 

Bart

2 REPLIES 2

Re: Cloudera Altus Director - problem with java installation during deployment creation via REST API

Expert Contributor

"enableEnterpriseTrial" should have no effect on java installation. Also, the java rpm should be available in the CM yum repo. What version of Director are you using and what version of CM are you installing?

 

I do see that  https://archive.cloudera.com/cm6/6.2.0/ shows a "last modified" date of yesterday (7/9). Perhaps there was some maintenance being performed on the repo when you ran. Can you try to run again?

Re: Cloudera Altus Director - problem with java installation during deployment creation via REST API

Explorer

Hi,

 

    I've ran this again and looks good. Probably it was some intermitent problem as You mentioned.

 

    Thanks,

 

    Bart