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.

Cluster bootstrap failed: Unsupported Package Manager: UNKNOWN

Cluster bootstrap failed: Unsupported Package Manager: UNKNOWN

New Contributor

Hi,

 

I am trying to bootstrap CDH5.12 cluster through 'cyon' plugin on a few RHEL7 VMs.

 

The bootstrap was successful previously. 

 

However, after I clean-up the Cloudera Director and CDH cluster and re-install everything for testing purpose.

 

The same process failed at stage of installation of 'screen' package. The error trace (posted below) told me the system package manager is unknown. I checked the log generated by success bootstrap process, where the "YUM" is corrected picked up as package manager. May I check how the package manager is detected by the Cloudera Director during the bootstrap process?

 

Thank you.

 

[2017-08-25 23:57:06.440 +0800] INFO  [p-f81c82d16dd4-DefaultBootstrapDeploymentJob] - c.c.l.pipeline.util.PipelineRunner: >> InstallPackages$InstallOrUpgradePackage/5 [UNKNOWN, screen, PluggableComputeInstance{ipAddress=10.91.130.188, delegate=null, hostEndpoints=[Ho ...
[2017-08-25 23:57:06.523 +0800] ERROR [p-f81c82d16dd4-DefaultBootstrapDeploymentJob] - c.c.l.pipeline.util.PipelineRunner: Attempt to execute job failed
java.lang.UnsupportedOperationException: Unsupported package manager: UNKNOWN
        at com.cloudera.launchpad.inspector.util.PackageManagerService.getCommands(PackageManagerService.java:45)
        at com.cloudera.launchpad.bootstrap.InstallPackages$InstallOrUpgradePackage.run(InstallPackages.java:127)
        at com.cloudera.launchpad.bootstrap.InstallPackages$InstallOrUpgradePackage.run(InstallPackages.java:107)
        at com.cloudera.launchpad.pipeline.job.Job5.runUnchecked(Job5.java:34)
        at com.cloudera.launchpad.pipeline.job.Job5$$FastClassBySpringCGLIB$$54178505.invoke(<generated>)
        at org.springframework.cglib.proxy.MethodProxy.invoke(MethodProxy.java:204)
        at org.springframework.aop.framework.CglibAopProxy$CglibMethodInvocation.invokeJoinpoint(CglibAopProxy.java:721)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:157)
        at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:85)
        at com.cloudera.launchpad.pipeline.PipelineJobProfiler.profileJobRun(PipelineJobProfiler.java:60)
        at sun.reflect.GeneratedMethodAccessor99.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:629)
        at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:618)
        at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:70)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
        at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:92)
        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
        at org.springframework.aop.framework.CglibAopProxy$DynamicAdvisedInterceptor.intercept(CglibAopProxy.java:656)
        at com.cloudera.launchpad.bootstrap.InstallPackages$InstallOrUpgradePackage$$EnhancerBySpringCGLIB$$eae4c49.runUnchecked(<generated>)
        at com.cloudera.launchpad.pipeline.util.PipelineRunner$JobCallable.call(PipelineRunner.java:197)
        at com.cloudera.launchpad.pipeline.util.PipelineRunner$JobCallable.call(PipelineRunner.java:168)
        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:133)
        at com.cloudera.launchpad.pipeline.DatabasePipelineRunner.run(DatabasePipelineRunner.java:164)
        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)

 

4 REPLIES 4
Highlighted

Re: Cluster bootstrap failed: Unsupported Package Manager: UNKNOWN

Expert Contributor

DrJT,

 

The package manager is determined by attempting to run some known package managers and checking for success. E.g., for RHEL the relevant check would be

sudo yum --version

If none of the known package managers succeed, then Director marks it as UNKNOWN.

 

David

 

Re: Cluster bootstrap failed: Unsupported Package Manager: UNKNOWN

Explorer

I am facing the same issue. How do we approch this to resolve?

Re: Cluster bootstrap failed: Unsupported Package Manager: UNKNOWN

Contributor

As mentioned by dhan, you can ssh into a cluster instance and run the following.

 

sudo yum --version

 

If that command succeds (returns exit code 0), Director should be able to identify the package manager.

Re: Cluster bootstrap failed: Unsupported Package Manager: UNKNOWN

Explorer

Yes Solved. user in the machine haven't have the sudo. After adding the it to the sudoers it worked perfectly.

 

But wondering, dono, even after been as a root i was getting the same issue!!