Support Questions

Find answers, ask questions, and share your expertise

Error when run command 'wget -nv http://private-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.3.4.1-10/hdp.repo -O /etc/yum.repos.d/HDP-TP.repo'

avatar
Contributor

when i run command '

wget -nv http://private-repo-1.hortonworks.com/HDP/centos6/2.x/updates/2.3.4.1-10/hdp.repo -O /etc/yum.repos.d/HDP-TP.repo'

command in Zeppelin, getting error as

<console>:2: error: ';' expected but '(' found. print("")

Ps help.

Sandbox HDP version is 2.3.2

1 ACCEPTED SOLUTION

avatar
Master Guru

Hi @Rajendra Vechalapu, you need to login as root to your Sandbox or a machine where you want to install Spark and run the wget command there. It's also assuming that your OS is CentOS or RHEL-6. I just tried and it works (the URL is still valid). After that run "yum install" and follow all other steps on that page before trying Spark from the command line (test the command line first) or from Zeppelin.

View solution in original post

7 REPLIES 7

avatar
Contributor

avatar
Master Guru

Hi @Rajendra Vechalapu, you need to login as root to your Sandbox or a machine where you want to install Spark and run the wget command there. It's also assuming that your OS is CentOS or RHEL-6. I just tried and it works (the URL is still valid). After that run "yum install" and follow all other steps on that page before trying Spark from the command line (test the command line first) or from Zeppelin.

avatar
Contributor

Thank you for your reply, but from Zeppelin it is not working. Pls note that I am using hortonworks sanbox VM on Windows 7 OS. even tried directly in command prompt but still got errors.

avatar
Master Guru

Login to your sandbox using "ssh -p2222 root@localhost" and then run wget and yum commands from the command line, and all other commands from the tutorial.

avatar
Master Guru

@Rajendra Vechalapu, I just realized that all details are not explained anywhere. So on Windows you need an ssh client, you can download Putty for example. Then in Putty type "localhost" as hostname and port 2222 and then try to login. You can also try a web ssh client at http://localhost:4200.

avatar
Contributor

It worked, Thank you

avatar
Master Guru

Hi @Rajendra Vechalapu glad to hear that it worked! If so, can you consider to upvote and/or accept my answer. By the way HCC works similar to "Stack Overflow": It serves as a platform for users to ask and answer questions related to HDP and Hadoop in general, and, through membership and active participation, to vote questions and answers up or down, accept answeres and edit questions and answers. In addition to Q&A there are also articles, ideas and repos sections. Tnx!