ranger-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kishor Gollapalliwar (Jira)" <j...@apache.org>
Subject [jira] [Updated] (RANGER-3089) Ranger Setup issue fix
Date Wed, 25 Nov 2020 07:59:00 GMT

     [ https://issues.apache.org/jira/browse/RANGER-3089?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Kishor Gollapalliwar updated RANGER-3089:
-----------------------------------------
    Description: 
Ranger setup is failing with below error:
{code:java}
Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/compress/archivers/tar/TarArchiveInputStreamException
in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/compress/archivers/tar/TarArchiveInputStream
at org.apache.hadoop.fs.RawLocalFileSystem$DeprecatedRawLocalFileStatus.loadPermissionInfoByNonNativeIO(RawLocalFileSystem.java:753)
at org.apache.hadoop.fs.RawLocalFileSystem$DeprecatedRawLocalFileStatus.loadPermissionInfo(RawLocalFileSystem.java:744)
at org.apache.hadoop.fs.RawLocalFileSystem$DeprecatedRawLocalFileStatus.getPermission(RawLocalFileSystem.java:705)
at org.apache.hadoop.security.alias.JavaKeyStoreProvider.stashOriginalFilePermissions(JavaKeyStoreProvider.java:83)
at org.apache.hadoop.security.alias.AbstractJavaKeyStoreProvider.locateKeystore(AbstractJavaKeyStoreProvider.java:320)
at org.apache.hadoop.security.alias.AbstractJavaKeyStoreProvider.<init>(AbstractJavaKeyStoreProvider.java:86)
at org.apache.hadoop.security.alias.JavaKeyStoreProvider.<init>(JavaKeyStoreProvider.java:49)
at org.apache.hadoop.security.alias.JavaKeyStoreProvider.<init>(JavaKeyStoreProvider.java:41)
at org.apache.hadoop.security.alias.JavaKeyStoreProvider$Factory.createProvider(JavaKeyStoreProvider.java:100)
at org.apache.hadoop.security.alias.CredentialProviderFactory.getProviders(CredentialProviderFactory.java:73)
at org.apache.ranger.credentialapi.CredentialReader.getDecryptedString(CredentialReader.java:59)
at org.apache.ranger.common.PropertiesUtil.processProperties(PropertiesUtil.java:136) at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:86)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:283)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:163)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:687)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:524)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
at org.apache.ranger.util.CLIUtil.init(CLIUtil.java:54) at org.apache.ranger.util.CLIUtil.getBean(CLIUtil.java:62)
at org.apache.ranger.patch.cliutil.ChangePasswordUtil.main(ChangePasswordUtil.java:55)Caused
by: java.lang.ClassNotFoundException: org.apache.commons.compress.archivers.tar.TarArchiveInputStream
at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 22 more{code}
*Steps*:
 # Get latest code
 # Build Ranger using maven command
 # copy *ranger-3.0.0-SNAPSHOT-admin.tar.gz*  from target director to location where you
want to setup ranger
 # untar *ranger-3.0.0-SNAPSHOT-admin.tar.gz* and move to *ranger-3.0.0-SNAPSHOT-admin*
directory
 # configure *install.properties* as per your requirements
 # run *setup.sh*

 

  was:
Ranger setup is failing with 

*Steps*:
 # Build Ranger using maven command
 # copy *ranger-3.0.0-SNAPSHOT-admin.tar.gz*  from target director to location where you
want to setup ranger
 # untar *ranger-3.0.0-SNAPSHOT-admin.tar.gz* and move to *ranger-3.0.0-SNAPSHOT-admin*
directory
 # configure *install.properties* as per your requirements
 # run *setup.sh*

 


> Ranger Setup issue fix
> ----------------------
>
>                 Key: RANGER-3089
>                 URL: https://issues.apache.org/jira/browse/RANGER-3089
>             Project: Ranger
>          Issue Type: Improvement
>          Components: Ranger
>    Affects Versions: 3.0.0
>            Reporter: Kishor Gollapalliwar
>            Assignee: Kishor Gollapalliwar
>            Priority: Major
>
> Ranger setup is failing with below error:
> {code:java}
> Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/compress/archivers/tar/TarArchiveInputStreamException
in thread "main" java.lang.NoClassDefFoundError: org/apache/commons/compress/archivers/tar/TarArchiveInputStream
at org.apache.hadoop.fs.RawLocalFileSystem$DeprecatedRawLocalFileStatus.loadPermissionInfoByNonNativeIO(RawLocalFileSystem.java:753)
at org.apache.hadoop.fs.RawLocalFileSystem$DeprecatedRawLocalFileStatus.loadPermissionInfo(RawLocalFileSystem.java:744)
at org.apache.hadoop.fs.RawLocalFileSystem$DeprecatedRawLocalFileStatus.getPermission(RawLocalFileSystem.java:705)
at org.apache.hadoop.security.alias.JavaKeyStoreProvider.stashOriginalFilePermissions(JavaKeyStoreProvider.java:83)
at org.apache.hadoop.security.alias.AbstractJavaKeyStoreProvider.locateKeystore(AbstractJavaKeyStoreProvider.java:320)
at org.apache.hadoop.security.alias.AbstractJavaKeyStoreProvider.<init>(AbstractJavaKeyStoreProvider.java:86)
at org.apache.hadoop.security.alias.JavaKeyStoreProvider.<init>(JavaKeyStoreProvider.java:49)
at org.apache.hadoop.security.alias.JavaKeyStoreProvider.<init>(JavaKeyStoreProvider.java:41)
at org.apache.hadoop.security.alias.JavaKeyStoreProvider$Factory.createProvider(JavaKeyStoreProvider.java:100)
at org.apache.hadoop.security.alias.CredentialProviderFactory.getProviders(CredentialProviderFactory.java:73)
at org.apache.ranger.credentialapi.CredentialReader.getDecryptedString(CredentialReader.java:59)
at org.apache.ranger.common.PropertiesUtil.processProperties(PropertiesUtil.java:136) at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:86)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:283)
at org.springframework.context.support.PostProcessorRegistrationDelegate.invokeBeanFactoryPostProcessors(PostProcessorRegistrationDelegate.java:163)
at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:687)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:524)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:139)
at org.springframework.context.support.ClassPathXmlApplicationContext.<init>(ClassPathXmlApplicationContext.java:93)
at org.apache.ranger.util.CLIUtil.init(CLIUtil.java:54) at org.apache.ranger.util.CLIUtil.getBean(CLIUtil.java:62)
at org.apache.ranger.patch.cliutil.ChangePasswordUtil.main(ChangePasswordUtil.java:55)Caused
by: java.lang.ClassNotFoundException: org.apache.commons.compress.archivers.tar.TarArchiveInputStream
at java.net.URLClassLoader.findClass(URLClassLoader.java:382) at java.lang.ClassLoader.loadClass(ClassLoader.java:418)
at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:352) at java.lang.ClassLoader.loadClass(ClassLoader.java:351)
... 22 more{code}
> *Steps*:
>  # Get latest code
>  # Build Ranger using maven command
>  # copy *ranger-3.0.0-SNAPSHOT-admin.tar.gz*  from target director to location where
you want to setup ranger
>  # untar *ranger-3.0.0-SNAPSHOT-admin.tar.gz* and move to *ranger-3.0.0-SNAPSHOT-admin*
directory
>  # configure *install.properties* as per your requirements
>  # run *setup.sh*
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message