Our Community is getting an upgrade! To get everything ready for the relaunch, we’ll be placing the site in read-only mode starting September 21st.
We really appreciate your understanding while we get things set up behind the scenes. Catch up on all the exciting details about the move here.
Need help or have questions? Drop us a line at [email protected]

Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Anaconda parcels - installing new package, using conda?

avatar
Explorer

Hi there,

 

I've installed successfullly the anaconda parcel but how do I installed new packages on this distrib  ? I mean, how do I use conda?

Should I add conda to PATH, if so where is by default ? The documentation is not clear 😞

 

Thx for help,

Mehdi

1 ACCEPTED SOLUTION

avatar
Explorer

Yeah I already had a look over there.

 

So I solved this by adding to my PATH, the ../cloudera/parcels/Anaconda/bin:$PATH"

After I was able to use conda command and pip install BUT when installing a new package, it doesn't install to the cluster, so need to manually install on each machine...

 

View solution in original post

8 REPLIES 8

avatar
Master Guru

avatar
Explorer

Yeah I already had a look over there.

 

So I solved this by adding to my PATH, the ../cloudera/parcels/Anaconda/bin:$PATH"

After I was able to use conda command and pip install BUT when installing a new package, it doesn't install to the cluster, so need to manually install on each machine...

 

avatar
Explorer

Thanks, I have the same problem.

Could anyone explain if it is correct to manually install new packages on every node ?

Is this a functionality you aquire with commercial Anaconda only?

Thanks

avatar
Contributor

I am able to do this by running (or adding this to your ~/.bashrc)

 

export PATH=/opt/cloudera/parcels/Anaconda/bin:$PATH

 

After this conda, pip, and python commands all defaulted to the Anaconda version. 

avatar

Hi,

 

Does this PATH variable need adding to every node in the Cluster where the parcels have been delivered?

avatar
Contributor

Putting Anaconda's bin in front of $PATH is a bit dangerous thing to do. It contains binaries like iconv, curl so you suddenly end calling them instead or original ones ....

avatar
Expert Contributor
Hi,
What do you suggest instead to overcome this issue? I mean being able to use something like ansible and ask all the node to run conda install ... ?

avatar
Contributor

put it at the end of  $PATH  .....