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

Hadoop job log4j:WARN Please initialize the log4j system properly #170

Open
neustre opened this issue Jun 26, 2015 · 5 comments
Open

Hadoop job log4j:WARN Please initialize the log4j system properly #170

neustre opened this issue Jun 26, 2015 · 5 comments

Comments

@neustre
Copy link

neustre commented Jun 26, 2015

'm trying to make a mapreduce job in Rstudio in order to make some statistics , and i' having this error , searched every where , i didn't find the reason : so here is my code in Rstudio:

Sys.setenv(HADOOP_CMD="/usr/local/hadoop/bin/hadoop")
Sys.setenv(HADOOP_HOME="/usr/local/hadoop")
Sys.setenv(JAVA_HOME="/usr/local/java/jre")
Sys.setenv(HADOOP_CONF="/usr/local/hadoop/conf")
Sys.setenv(HADOOP_STREAMING="/usr/local/hadoop/share/hadoop/tools/lib/hadoop-streaming-2.6.0.jar")
library("rmr2")
library("rhdfs")
set <- ("/data.csv")
mapreduce(set,
map=function(k,v) keyval(k,v),
input.format = "csv",
output.format = "native")

but i get this :

Error in mr(mp=map,reduce=reduce,combine=combine,vectorized.reduce, :
hadoop streaming failed with error code 1

in the log File i see this :

log4j:WARN No appenders could be found for logger (org.apache.hadoop.ipc.Server).
log4j:WARN Please initialize the log4j system properly.
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.

Try to solve this for 4 days . Any HELP would be greatly appreciated !!!

@piccolbo
Copy link
Collaborator

piccolbo commented Jul 1, 2015

Please simplify your example by removing unnecessary rhdfs load, try to read a sample of data with read.table to verify format and provide stderr of failing task (accessible through mapreduce web UI).

@neustre
Copy link
Author

neustre commented Jul 2, 2015

hi , i did verify again all the logs , and i saw the functional package problem , after searching , i discover that the problem is that i wasn't root . once i logged in as root and reinstall the packages again, i've made the countword example and it works .
I have another question not really a question but i just want to know the process if i can reach you in private . thank you .

@piccolbo
Copy link
Collaborator

piccolbo commented Jul 2, 2015

For private support one option is to contact Revolution Analytics, they
offer a variety of solution.

On Thu, Jul 2, 2015 at 12:17 AM neustre [email protected] wrote:

hi , i did verify again all the logs , and i saw the functional package
problem , after searching , i discover that the problem is that i wasn't
root . once i logged in as root and reinstall the packages again, i've made
the countword example and it works .
I have another question not really a question but i just want to know the
process if i can reach you in private . thank you .


Reply to this email directly or view it on GitHub
#170 (comment)
.

@neustre
Copy link
Author

neustre commented Jul 2, 2015

ok, i only have a project to do with hadoop and R i wanted to know steps , and if i am on the good road , project has a deadline . i'll contact them any way , thank you .

@neustre
Copy link
Author

neustre commented Jul 8, 2015

hi , i have a question please , i didn't find an answer. Can i do a shiny application based on rhdfs and rmr .
if i finished my tests and algorithms with mapreduce and R , can i be able to do shiny without any problem or there is a comparability issue ?

Thank you

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

2 participants