Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can't install rhdfs #22

Closed
guxiaobo opened this issue Oct 25, 2011 · 6 comments
Closed

Can't install rhdfs #22

guxiaobo opened this issue Oct 25, 2011 · 6 comments

Comments

@guxiaobo
Copy link

Hi,

I am running R 2.13.1 on CENTS 6.0 x64 with Oracle JDK 1.6.23 64bit and rJava0.9.2, when executing R CMD INSTALL R CMD INSTALL rhdfs_1.0.1.tar.tar

  • installing to library ‘/opt/r2131/lib64/R/library’
  • installing source package ‘rhdfs’ ...
    ** R
    ** inst
    ** preparing package for lazy loading
    ** help
    *** installing help indices
    ** building package indices ...
    ** testing if installed package can be loaded
    Error : .onLoad failed in loadNamespace() for 'rhdfs', details:
    call: .jcall("RJavaTools", "Ljava/lang/Object;", "invokeMethod", cl,
    error: java.lang.NoClassDefFoundError: com.sun.security.auth.UnixPrincipal
    Error: loading failed
    Execution halted
    ERROR: loading failed
  • removing ‘/opt/r2131/lib64/R/library/rhdfs’
    [gpadmin@hdp1 pkgs]$ java -version
    java version "1.6.0_23"
    Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
    Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
@RevolutionAnalytics
Copy link
Collaborator

What version/distribution of Hadoop are you running? What is JAVA_HOME set to?

@guxiaobo
Copy link
Author

I am using Apache hadoop-0.20.203.0rc1.tar.gz, and my JAVA environment is

[gpadmin@hdp1 pkgs]$ echo $JAVA_HOME
/usr/java/default
[gpadmin@hdp1 pkgs]$ $JAVA_HOME/bin/java -version
java version "1.6.0_23"
Java(TM) SE Runtime Environment (build 1.6.0_23-b05)
Java HotSpot(TM) 64-Bit Server VM (build 19.0-b09, mixed mode)
[gpadmin@hdp1 pkgs]$

@RevolutionAnalytics
Copy link
Collaborator

Are you able to run all of the hadoop sample programs without problems?

@RevolutionAnalytics
Copy link
Collaborator

It seems like RJava is not finding the correct path. Can you execute the following from a terminal window, and report the results

R CMD javareconf

@guxiaobo
Copy link
Author

[gpadmin@hdp1 ~]$ R CMD javareconf
Java interpreter : /usr/java/default/jre/bin/java
Java version : 1.6.0_23
Java home path : /usr/java/default
Java compiler : /usr/java/default/bin/javac
Java headers gen.: /usr/java/default/bin/javah
Java archive tool: /usr/java/default/bin/jar
Java library path: /usr/java/jdk1.6.0_23/jre/lib/amd64/server:/usr/java/jdk1.6.0_23/jre/lib/amd64:/usr/java/jdk1.6.0_23/jre/../lib/amd64::/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib
JNI linker flags : -L/usr/java/jdk1.6.0_23/jre/lib/amd64/server -L/usr/java/jdk1.6.0_23/jre/lib/amd64 -L/usr/java/jdk1.6.0_23/jre/../lib/amd64 -L -L/usr/java/packages/lib/amd64 -L/usr/lib64 -L/lib64 -L/lib -L/usr/lib -ljvm
JNI cpp flags : -I$(JAVA_HOME)/include -I$(JAVA_HOME)/include/linux

Updating Java configuration in /opt/r2131/lib64/R
Done.

[gpadmin@hdp1 ~]$

@guxiaobo
Copy link
Author

After executing this command the rhdfs package can be installed now
[gpadmin@hdp1 pkgs]$ R CMD INSTALL rhdfs_1.0.1.tar.tar

  • installing to library ‘/opt/r2131/lib64/R/library’
  • installing source package ‘rhdfs’ ...
    ** R
    ** inst
    ** preparing package for lazy loading
    ** help
    *** installing help indices
    ** building package indices ...
    ** testing if installed package can be loaded
  • DONE (rhdfs)
    [gpadmin@hdp1 pkgs]$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant