How to uninstall all versions of hadoop completely from the system? - hadoop

I had installed CDH5 with Mvr1 in ubuntu 14.04 LTS (single node) in pseudo-distributed mode using this tutorial
http://www.cloudera.com/content/www/en-us/documentation/enterprise/latest/topics/cdh_qs_mrv1_pseudo.html
I used the command
sudo apt-get install hadoop-0.20-conf-pseudo
to install the package in pseduo distributed mode.
I then tried to uninstall it and migrate to YARN (MvR2). But in doing so, my datanode fails to start up every time. I removed Mvr1 and installed YARN using this tutorial:
http://www.cloudera.com/content/www/en-us/documentation/enterprise/latest/topics/cdh_qs_yarn_pseudo.html.
I used the command
sudo apt-get remove hadoop-0.20-conf-pseudo hadoop-0.20-mapreduce-*
to uninstall Mvr1
and
sudo apt-get install hadoop-conf-pseudo
to install YARN.
Can you suggest me how to remove all versions of hadoop completely from my system and verify that no file remains before I do a fresh installation?

Do a:
sudo dpkg -l | grep hadoop
to see what packages are installed and then go through the list running:
sudo apt-get remove
on anything that pops up. That should remove hadoop completely from your system.

Related

AWS EC2 : sudo: apt-get: command not found error

I have installed Amazon Linux 2 AMI (HVM), SSD Volume Type second number of os in list (AWS console) in my instance.
It connect to putty successfully.
Now I want to install node in my server.
For that I go to /var folder. Then I run this command.
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
And then I got error this.
## Populating apt-get cache...
+ apt-get update
bash: apt-get: command not found
Error executing command, exiting
To fixed this I have fire follow commands.
1) apt-get update
2) sudo apt-get update
3) yum update
4) sudo yum update
Still I have same issue. Anyone can help me.
Install node version manager (nvm) by typing the following at the command line.
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.32.0/install.sh | bash
Use nvm to install Node.js because nvm can install multiple versions of Node.js and allow you to switch between them.
Activate nvm by typing the following at the command line.
. ~/.nvm/nvm.sh
Use nvm to install the version of Node.js you intend to use by typing the following at the command line.
nvm install 4.4.5
Installing Node.js also installs the Node Package Manager (npm) so you can install additional modules as needed.
Test that Node.js is installed and running correctly by typing the following at the command line.
node -e "console.log('Running Node.js ' + process.version)"
This should display the following message that confirms the installed version of Node.js running.
Running Node.js v4.4.5
More Info : https://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/setting-up-node-on-ec2-instance.html

How to Install / Uninstall Laravel Supervisor (supervisorctl)?

I'm using Laravel homestead for dev, but my QA server is on Amazon Linux. Which is CentOS-7 based.
I have installed Supervisor on my Dev the way it is said on Laravel docs
sudo apt-get install supervisor
And now I'm stack.
It does not say how to uninstall it, and it does not say how to install it on Amazon Linux.
How to Uninstall Laravel Supervisor from Homestead?
And how to install/uninstall it on Amazon Linux?
If you installed it with apt-get then you should be able to remove it with the same package manager.
https://askubuntu.com/a/1144
E.g. with one of the following commands:
sudo apt-get remove supervisor # remove the package
sudo apt-get purge supervisor # remove the package and all configs
As for CentOS, try it with yum
yum install supervisor
yum remove supervisor
https://www.centos.org/docs/5/html/5.1/Deployment_Guide/s1-yum-useful-commands.html
Similar question:
https://stackoverflow.com/a/47322239/3095084

cloudera director client installation

I am trying to install apache-spot and Cloudera on AWS following these tutorials:
http://blog.cloudera.com/blog/2018/02/apache-spot-incubating-and-cloudera-on-aws-in-60-minutes/
https://www.cloudera.com/documentation/director/latest/topics/director_get_started_aws_install_dir_server.html#concept_xnb_cwh_jx
But when I run:
sudo apt-get install cloudera-director-client
The Ubuntu terminal gives me:
E: unable to locate package cloudera-director-client
I already ran this code to fix:
$ wget http://archive.cloudera.com/director/ubuntu/precise/amd64/director/cloudera-director.list
$ wget http://archive.cloudera.com/director/ubuntu/precise/amd64/director/archive.key
$ sudo apt-key add archive.key
$ sudo mv cloudera-director.list /etc/apt/sources.list.d
$ sudo apt-get update
Anyone able to help me? Thanks
The cloudera-director.list file that you have installed is likely old. The one in the URL you have listed is for Ubuntu 12.04 (Precise Pangolin). Make sure that you pick the release that matches your OS version.
Cloudera Altus Director 2.x is available for Ubuntu 14.04 (Trusty Tahr) at http://archive.cloudera.com/director/ubuntu/trusty/amd64/director/
Cloudera Altus Director 6.0.0 is available for Ubuntu 16.04 and 14.04 at http://archive.cloudera.com/director6/6.0.0/ubuntu1604/ or http://archive.cloudera.com/director6/6.0.0/ubuntu1404/
Please try installing again with a new cloudera-director.list and archive.key

How to create passenger.conf during passenger installation

When installing passenger on a freshly installed Ubuntu 16.04 machine using this tutorial, the installation fails because there is no file /etc/nginx/passenger.conf
Should I create this file manually or is this a bug in the install script?
I found workaround for that issue. You need to login as root (sudo does not work for some reason). That purge all existing installations of nginx&passenger and their configs (make sure that you made a BACKUP of any nginx configs you made):
apt-get purge nginx* passenger
apt-get autoremove
rm -rf /etc/nginx
Then, when you repeat install steps from documentation - it will work. It's some sudo related issue.

Installing cloudera impala without cloudera manager

Kindly provide the link for installing the imapala in ubuntu without cloudera manager. Couldn't able to install with official link.
Unable to locate package impala using these queries :
sudo apt-get install impala # Binaries for daemons
sudo apt-get install impala-server # Service start/stop script
sudo apt-get install impala-state-store # Service start/stop script
First you need to get the list of packages and store it in /etc/apt/sources.list.d/, then update the packages, then you fire the Impala queries.
At the terminal do the following:
cd /etc/apt/sources.list.d/
wget http://archive.cloudera.com/impala/ubuntu/precise/amd64/impala/cloudera.list
sudo apt-get update
sudo apt-get install impala # Binaries for daemons
sudo apt-get install impala-server # Service start/stop script
sudo apt-get install impala-state-store # Service start/stop script
Have you installed the correct list file?
See "Packages and Repositories" on page 14.
http://www.cloudera.com/content/cloudera-content/cloudera-docs/Impala/latest/PDF/Installing-and-Using-Impala.pdf

Resources