Loading failed: rJava.so, libjvm.so

220 views
Skip to first unread message

곽두현

unread,
Sep 27, 2014, 3:58:33 AM9/27/14
to rha...@googlegroups.com
Hello
I have a problem with mapreduce function.

-stderr-
Loading objects:
  .Random.seed
  a
  b
  data
  df
  lines
  m
  mr
  pal
  small.ints
  splt
Loading objects:
  backend.parameters
  combine
  combine.file
  combine.line
  debug
  default.input.format
  default.output.format
  in.folder
  in.memory.combine
  input.format
  libs
  map.file
  map.line
  out.folder
  output.format
  pkg.opts
  postamble
  preamble
  profile.nodes
  reduce
  reduce.file
  reduce.line
  rmr.global.env
  rmr.local.env
  save.env
  tempfile
  vectorized.reduce
  verbose
  work.dir
Loading required package: methods
Loading required package: rJava
Error : .onLoad failed in loadNamespace() for 'rJava', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/home/hadoop/R/i686-pc-linux-gnu-library/3.1/rJava/libs/rJava.so':
  libjvm.so: cannot open shared object file: No such file or directory
Warning in FUN(c("base", "methods", "datasets", "utils", "grDevices", "graphics",  :
  can't load rJava
Loading required package: rhdfs
Loading required package: rJava
Error : .onLoad failed in loadNamespace() for 'rJava', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/home/hadoop/R/i686-pc-linux-gnu-library/3.1/rJava/libs/rJava.so':
  libjvm.so: cannot open shared object file: No such file or directory
Failed with error:  ‘package ‘rJava’ could not be loaded’
Warning in FUN(c("base", "methods", "datasets", "utils", "grDevices", "graphics",  :
  can't load rhdfs
Loading required package: RColorBrewer
Loading required package: wordcloud
Loading required package: rmr2
Loading required package: stringr
Loading required package: hash
hash-2.2.6 provided by Decision Patterns

Attaching package: ‘hash’

The following objects are masked from ‘package:rmr2’:

    keys, values

Loading required package: tau
Loading required package: Sejong
Successfully Loaded Sejong Package.
Loading required package: KoNLP
Loading required package: rJava
Error : .onLoad failed in loadNamespace() for 'rJava', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/home/hadoop/R/i686-pc-linux-gnu-library/3.1/rJava/libs/rJava.so':
  libjvm.so: cannot open shared object file: No such file or directory
Failed with error:  ‘package ‘rJava’ could not be loaded’
Warning in FUN(c("base", "methods", "datasets", "utils", "grDevices", "graphics",  :
  can't load KoNLP
Loading objects:
  backend.parameters
  combine
  combine.file
  combine.line
  debug
  default.input.format
  default.output.format
  in.folder
  in.memory.combine
  input.format
  libs
  map
  map.file
  map.line
  out.folder
  output.format
  pkg.opts
  postamble
  preamble
  profile.nodes
  reduce
  reduce.file
  reduce.line
  rmr.global.env
  rmr.local.env
  save.env

  tempfile
  vectorized.reduce
  verbose
  work.dir
Error: .onLoad failed in loadNamespace() for 'rJava', details:
  call: dyn.load(file, DLLpath = DLLpath, ...)
  error: unable to load shared object '/home/hadoop/R/i686-pc-linux-gnu-library/3.1/rJava/libs/rJava.so':
  libjvm.so: cannot open shared object file: No such file or directory
No traceback available
Error during wrapup:
Execution halted

-Setting( namenode, datanode )-
> Sys.getenv("JAVA_HOME")
[1] "/usr/lib/jvm/java-7-oracle/jre"

> Sys.getenv("LD_LIBRARY_PATH")
[1] "/usr/lib/R/lib:/usr/lib/i386-linux-gnu:/usr/lib/jvm/java-7-oracle/jre/lib/i386/client:/usr/lib/jvm/java-7-oracle/jre/lib/i386/client:/usr/lib/jvm/java-7-oracle/jre/lib/i386"

Is the problem because Improper use of the function or Path?

I'm sorry if my English isn't very good
Thank you.


stefen

unread,
Sep 27, 2014, 7:41:36 AM9/27/14
to rha...@googlegroups.com
try this path set up

export LD_LIBRARY_PATH=/usr/lib/jvm/java-7-oracle/lib/amd64:/usr/lib/jvm/java-7-oracle/jre/lib/amd64/server

곽두현

unread,
Sep 30, 2014, 1:11:52 AM9/30/14
to
hi stefen
libjvm.so and rJava.so exist in /usr/lib/R/lib:/usr/lib/i386-
linux-gnu:/usr/lib/jvm/java-7-oracle/jre/lib/i386/client directory

Your LD_LIBRARY_PATH do not exist

Thank you
2014년 9월 27일 토요일 오후 8시 41분 36초 UTC+9, stefen 님의 말:
Reply all
Reply to author
Forward
0 new messages