Support Questions

Find answers, ask questions, and share your expertise

Moving Local ambari and HDP repository.

avatar
Explorer

Hi everyone,

 

Ambari :- 2.7.4

HDP :- 3.1.4.0

 

I had done the ambari installation using local repositories with no Internet access for Ambari and HDP as mentioned in the official docs by creating directory structure /var/www/html and, untarred all the HDP and Ambari files into /var/www/html/hdp and /var/www/html respectively, as mentioned in the docs. :- 

[ Ref :- https://docs.cloudera.com/HDPDocuments/Ambari-2.7.5.0/bk_ambari-installation/content/getting_started...

 

https://docs.cloudera.com/HDPDocuments/Ambari-2.7.5.0/bk_ambari-installation/content/setting_up_a_lo... ]

 

Then, I used python's Simple HTTP Server to host my local repository by running the command `python -m SimpleHTTPServer 2000` from inside /var/www/ instead of using Apache HTTP server as mentioned in the docs, to host my repositories in html directory on port 2000.

 

Installation was done and services are running fine. But the problem that I am facing is the / (root) partition of my system is now at 98% and these files of ambari inside the /var/www/html are taking up 11 GBs.

 

So my question is as the installation is done and the services have been running for few days, is it possible to move all the files inside the /var/www/html into some other directory on my system (lets says /app) and create a directory /app/html and put all those ambari and HDP files inside it and then create a new python SimpleHTTPServer from /app as I did for /var/www/ to host the newly created html directory containing the copied files? 


What effects will it have, if any and is it safe to do that as my cluster is up and running?

Is there any other way is this is not possible?

 

Thanks in advance. Please help!

@jsensharma @Shelton @nsabharwal 

1 ACCEPTED SOLUTION

avatar
Master Guru

@bvishal Once you installed the software suit you don't need /var/www/ content so it's safe to remove and reuse for next component installation whatever you want. You are good to go. 

 

However your described method for moving the content in diff dirt and server from there using http server is also fine but not needed at this point as we have build the cluster already. This is just temporary to install things. 

 

For Ref: https://docs.cloudera.com/cdp-private-cloud-base/7.1.3/installation/topics/cdpdc-using-internally-ho...


Cheers!
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

View solution in original post

1 REPLY 1

avatar
Master Guru

@bvishal Once you installed the software suit you don't need /var/www/ content so it's safe to remove and reuse for next component installation whatever you want. You are good to go. 

 

However your described method for moving the content in diff dirt and server from there using http server is also fine but not needed at this point as we have build the cluster already. This is just temporary to install things. 

 

For Ref: https://docs.cloudera.com/cdp-private-cloud-base/7.1.3/installation/topics/cdpdc-using-internally-ho...


Cheers!
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.