Install hadoop on Ubuntu 12.04 - hadoop

I am trying to install Hadoop on Ubuntu 12.04, my system is 32 bit compatible.
I am Linux newbie. I tried this tutorial.
I have done these steps successfully:
Part 1 install Hadoop:
First, install Sun JDK 6. Go to the following page:
http://www.oracle.com/technetwork/java/javasebusiness/downloads/java-archive-downloads-javase6-419409.html
Look for x86, agree to the license, and download the file. I did this on my laptop and copied it up to the server via scp. Once it's up there follow these installation instructions:
chmod +x jdk-6u32-linux-x86.bin
./jdk-6u32-linux-x86.bin
sudo mkdir -p /usr/lib/jvm
sudo mv jdk1.6.0_32 /usr/lib/jvm/jdk1.6.0_32
sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.6.0_32/bin/javac 1
sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.6.0_32/bin/java 1
sudo update-alternatives --install /usr/bin/javaws javaws /usr/lib/jvm/jdk1.6.0_32/bin/javaws 1
# now we're ready to install hadoop. taken from https://ccp.cloudera.com/display/CDH4DOC/Installing+CDH4+on+a+Single+Linux+Node+in+Pseudo-distributed+Mode
# update apt to be able to access cloudera
wget http://archive.cloudera.com/cdh4/one-click-install/lucid/amd64/cdh4-repository_1.0_all.deb
sudo dpkg -i cdh4-repository_1.0_all.deb
curl -s http://archive.cloudera.com/cdh4/ubuntu/lucid/amd64/cdh/archive.key | sudo apt-key add -
sudo apt-get update
# install hadoop
sudo su
export JAVA_HOME=/usr/lib/jvm/jdk1.6.0_32/
But while I try installing 'hadoop-0.20-conf-pseudo' I get this error:
E: Unable to locate package hadoop-0.20-conf-pseudo
E: Couldn't find any package by regex 'hadoop-0.20-conf-pseudo'
Would you please let me know what causes the problem?

Related

Installing Yarn through Bash shell WSL1

When I run curl, it shows this error:
~$ curl -sS https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key add -
gpg: can't connect to the agent: IPC connect call failed
I'm unable to install yarn.
I tried killing:
~$ kill -9 gpg-agent
and restarting:
~$ gpg-agent --daemon
but nothing worked so far. Any advice?
I did this from my root -
npm install -g yarn
Checked if the yarn is installed by -
yarn --version
It worked.
The following worked for me:
sudo apt remove gnupg
sudo apt autoremove
sudo apt install gnupg1
This installs GNUPG Classic. Read more here.

How to install GTK3 and Firefox on Amazon Linux (EC2) instance?

I'm trying to install the firefox on amazon linux (ec2) instance.. but this seems very difficult as gtk3 cannot be installed directly via yum.
I've seen some articles here. but not very helpful.
Thanks,
Considering its an amazon-linux-2 (you can check with--> cat /etc/os-release)
Install Dependencies for Firefox->
sudo yum install -y gtk3
sudo yum install -y libdbusmenu
sudo yum install -y libdbusmenu-jsonloader
Installing FireFox:
cd /opt
sudo wget
https://download-installer.cdn.mozilla.net/pub/firefox/releases/93.0/linux-x86_64/en-US/firefox-93.0.tar.bz2
sudo tar xfj firefox-93.0.tar.bz2
firefox --version
sudo ln -s /opt/firefox/firefox /usr/bin/firefox

Tarantool doesn't work on Ubuntu 16 (libbfd-2.26-system.so: cannot open shared object file)

I installed Tarantool 1.7 on Ubuntu 16 as instructed https://tarantool.org/download.html
The installation was successful, but when i run tarantool it fails with error:
tarantool: error while loading shared libraries: libbfd-2.26-system.so: cannot open shared object file: No such file or directory
Check 'binutils' has been installed, if not:
$ sudo apt-get update
$ sudo apt-get install -y binutils
Check version:
$ ls /usr/lib/x86_64-linux-gnu/libbfd*
if you see:
/usr/lib/x86_64-linux-gnu/libbfd-2.26.1-system.so
then you need:
$ cd /usr/lib/x86_64-linux-gnu
$ sudo ln -s libbfd-2.26.1-system.so libbfd-2.26-system.so

installing Heroku-toolbelt in Kali-sana

i am Trying to install heroku tool belt in Kali sana from :wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh and i keep getting the error below any help?
Some packages could not be installed. This may mean that you have
requested an impossible situation or if you are using the unstable
distribution that some required packages have not yet been created
or been moved out of Incoming.
The following information may help to resolve the situation:
The following packages have unmet dependencies:
heroku-toolbelt : Depends: heroku (= 3.43.3) but it is not going to be installed
E: Unable to correct problems, you have held broken packages.
So I know this thread is old but I just got heroku working on kali and found this thread while searching.
$ wget https://cli-assets.heroku.com/branches/stable/heroku-linux-386.tar.gz -O heroku.tar.gz
$ mkdir -p /usr/local/lib
$ tar -xvzf heroku.tar.gz -C /usr/local/lib
$ /usr/local/lib/heroku/install
Above is what I used, the 386 part for ARCH as in architecture is 32bit, so you would need amd64 for 64bit.
sudo apt install software-properties-common # debian only
[nano | echo | leafpad ] "deb https://cliassets.heroku.com/branches/stable/apt ./" """into""" /etc/apt/source.list
curl -L https://cli-assets.heroku.com/apt/release.key | sudo apt-key add -
sudo apt update
sudo apt upgrade
sudo apt-get install heroku
apt-get update
wget -O- https://toolbelt.heroku.com/install-ubuntu.sh | sh
heroku update
this would update all the plugins to the latest version of the heroku cli...goodluck

Installation of Rstudio for ubuntu

I want to install Rstudio for ubuntu, so I used the link https://www.rstudio.com/products/rstudio/download/ after that I choosen RStudio 0.99.893 - Ubuntu 12.04+/Debian 8+ (64-bit) then I opened with Ubuntu software center. In that I clicked the install button I got error box like this,
Requires installation of untrusted packages
This requires installing packages from unauthenticated sources.
How to solve this problem?
The unauthenticated package required by RStudio is libjpeg62, so install the package separately and then install rstudio from software center
In the terminal run the following for installing libjpeg62
sudo apt-get install --allow-unauthenticated libjpeg62
Then go back to installing rstudio.
Note: you need to install r interpretor along with rstudio this you can do by following
sudo apt-get install r-base
# Install R and RStudio on Ubuntu 14.04
sudo apt-get update
sudo apt-get install r-base
sudo apt-get install r-base-dev
# Download and Install RStudio
sudo apt-get install gdebi-core
wget https://download1.rstudio.org/rstudio-1.0.44-amd64.deb
sudo gdebi rstudio-1.0.44-amd64.deb
Runs following commands :
In order to install RStudio on Ubuntu 18.04 we will first need to install the r-base package. Open up terminal and enter:
$ sudo apt update
$ sudo apt -y install r-base
To install DEB file on Ubuntu Linux is by using the gdebi command.
In case gdebi is not available on your system you can install it by executing the bellow command:
$ sudo apt install gdebi-core
All Package(builds) are available : in this link or link. You can select different package.
I had download and install : rstudio-xenial-1.1.463-amd64.deb build(package) from above in this link.
$ wget https://s3.amazonaws.com/rstudio-dailybuilds/rstudio-xenial-1.1.463-amd64.deb
$ sudo gdebi rstudio-xenial-1.1.463-amd64.deb
To Start R-Studdio from following command :
$ rstudio

Resources