Support Questions

Find answers, ask questions, and share your expertise

Installing R as Ambari service on Hortonworks Sandbox

avatar
Super Collaborator

Hi guys, I am trying to install R on Hortonworks Sandbox, referring this right now:

https://github.com/randerzander/r-service

Install step got successful but getting the following error in Check R step.

resource_management.core.exceptions.Fail: Execution of 'R --file=/var/lib/ambari-agent/cache/stacks/HDP/2.5/services/r-service/package/scripts/r/smoke_test.r' returned 1. Error in objects(db.pos, all.names = TRUE) : 2 arguments passed to .Internal(ls) which requires 3 Execution halted

This repo was meant for HDP2.2 but I am using with 2.5, is there a updated version for this repo?

1 ACCEPTED SOLUTION

avatar
Super Guru

@mrizvi

Error comes from the execution of the line 10 of the service check script: https://github.com/randerzander/r-service/blob/master/package/scripts/ambari/service_check.py

It indicates that only 2 parameters have been passed instead of 3.

That question about a more updated version of the repo is really to the private owner of the repository (randerzander) and less to Ambari community. You could follow the code path, if you have the time, and contribute to the repo.

What about going differently to achieve the same? See this article: http://toodey.com/2016/01/12/installing-open-source-r-on-hortonworks-sandbox-hadoop/

++++

If any response addressed your question, please vote and accept the best answer.

View solution in original post

2 REPLIES 2

avatar
Super Guru

@mrizvi

Error comes from the execution of the line 10 of the service check script: https://github.com/randerzander/r-service/blob/master/package/scripts/ambari/service_check.py

It indicates that only 2 parameters have been passed instead of 3.

That question about a more updated version of the repo is really to the private owner of the repository (randerzander) and less to Ambari community. You could follow the code path, if you have the time, and contribute to the repo.

What about going differently to achieve the same? See this article: http://toodey.com/2016/01/12/installing-open-source-r-on-hortonworks-sandbox-hadoop/

++++

If any response addressed your question, please vote and accept the best answer.

avatar
Super Collaborator

Thank you so much @Constantin Stanca, I followed the other link and installed R, rhdfs, rmr2 and rhive. It was a great help.