bin/hadoop dfsadmin -refreshNodes
All the question that scared me now i am trying to scare them .. so that they cant scare others :)
Tuesday, November 20, 2012
Datanode Decommissioning from Hadoop Cluster
bin/hadoop dfsadmin -refreshNodes
Best Way to add nodes to hadoop cluster
If you are using Cloudera's distribution of Hadoop:
service hadoop-0.20-datanode start
service hadoop-0.20-tasktracker start
If you are using Apache distribution of Hadoop:
Monday, November 19, 2012
Configure MySQL as a MetaStore For Hive. MySQL as Hive
1. first your mysql should be installed and running.
I will show you how to configure mysql as a meta store for hive
lets start --->
Ubuntu returning to login screen, Ubuntu Login loop
If you are having login problem in ubuntu, for example if you are putting your password and login screen coming again and again then just try following solution.
sudo apt-get install --reinstall xorg
/home/<username>/.XAuthority* <—The user name which is not able to login.
then restart the system.
and if above does not work try following
switch to shell (Ctrl+Alt+F1) you can use <F1 to F6 in place of F1>
logged in as the user
cd /home/user
sudo mv .Xauthority .XauthorityBak
sudo reboot
Friday, November 16, 2012
Install oracle/sun java on ubuntu 12.10
2. Type in the following commands then hit Enter after each.
- sudo sh -c "echo 'deb http://www.duinsoft.nl/pkg debs all' >> /etc/apt/sources.list"
- sudo apt-get update
- sudo apt-key adv --keyserver keys.gnupg.net --recv-keys 5CB26B26
- sudo apt-get update
- sudo apt-get install update-sun-jre
To install JDK 7 on i386 32-bit systems:
1. Open a terminal window.
2. Type in the following commands then hit Enter after each.
cd /tmp
wget -c --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" "http://goo.gl/g9cJl" -O jdk-7u7-nb-7_2-linux-i586-ml.sh
- chmod +x jdk-7u7-nb-7_2-linux-i586-ml.sh
- sudo sh jdk-7u7-nb-7_2-linux-i586-ml.sh
To install JDK 7 on AMD 64-bit systems:
cd /tmp
wget -c --no-cookies --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com" "http://goo.gl/AJ1oS" -O jdk-7u7-nb-7_2-linux-x64-ml.sh
- chmod +x jdk-7u7-nb-7_2-linux-x64-ml.sh
- sudo sh jdk-7u7-nb-7_2-linux-x64-ml.sh
When the install is complete, use these commands:
- sudo mkdir -p /usr/lib/jvm/
- sudo cp -R /usr/local/jdk1.7.0* /usr/lib/jvm/
- sudo update-alternatives --install /usr/bin/javac javac /usr/lib/jvm/jdk1.7.0_07/bin/javac 1
- sudo update-alternatives --install /usr/bin/java java /usr/lib/jvm/jdk1.7.0_07/bin/java 1
http://www.itworld.com/software/305913/install-oracle-java-7-ubuntu-1210
and
http://www.upubuntu.com/2012/10/how-to-install-oracle-java-7-jre-7-jdk.html?m=0
Open a port to listen on in Linux
iptables -A INPUT -p tcp --dport <Port>2 -j ACCEPT
Monday, October 15, 2012
Hive Thrift Server
Hive provide a service that can be called as hive server or thrift server which helps us to access hive using different languages like c++, Java, Ruby, Python and many others remotely like how we use JDBC or ODBC connectors.
By default we use Command line to access hive, but to use hive programmatically we need such facility as a server that runs on an address and a port no so that it can be used in programming language efficiently and easily.
Starting Thrift Server :
bin/hive - -service hiveserver & -----> this will start thrift server and will give terminal to be used
or
bin/hive - - service hiveserver -------> this need to keep the terminal open, if terminal is closed server will be killed (Look for & operator in linux)
after starting this you can verify whether hive thrift server is running or not, by using following command
netstat –nl | grep 10000
if it shows something like :
tcp 0 0 :::10000 :::* Listen
that means your thrift server is running successfully. by default thrift server runs on port no 10000 we and also make it to run on different port no. as follows
build/dist/bin/hive --service hiveserver --help
usage HIVE_PORT=xxxx ./hive --service hiveserver
HIVE_PORT : Specify the server port
Limitation with Thrift server : HiveServer can not handle concurrent requests from more than one client. This is actually a limitation imposed by the Thrift interface that HiveServer exports, and can't be resolved by modifying the HiveServer code.
for using hive with jdbc and java refer –> Infinity
Tuesday, September 25, 2012
ERROR: org.apache.hadoop.hbase.MasterNotRunningException: Retried
Here is some help for this command:
List all tables in hbase. Optional regular expression parameter could
be used to filter the output. Examples:
Monday, September 24, 2012
Apache Hadoop NextGen MapReduce (YARN)
MapReduce has undergone a complete overhaul in hadoop-0.23 and we now have, what we call, MapReduce 2.0 (MRv2) or YARN.
The fundamental idea of MRv2 is to split up the two major functionalities of the JobTracker, resource management and job scheduling/monitoring, into separate daemons. The idea is to have a global ResourceManager (RM) and per-application ApplicationMaster (AM). An application is either a single job in the classical sense of Map-Reduce jobs or a DAG of jobs.
The ResourceManager and per-node slave, the NodeManager (NM), form the data-computation framework. The ResourceManager is the ultimate authority that arbitrates resources among all the applications in the system.
The per-application ApplicationMaster is, in effect, a framework specific library and is tasked with negotiating resources from the ResourceManager and working with the NodeManager(s) to execute and monitor the tasks.
Check this LINK for more detail
Hadoop High Availability (HA hadoop Cluster)
Sunday, September 23, 2012
Demystifying Hadoop concepts Series: Safe mode
Featured Posts
OBS Browser Source Not Working? How to Interact With Web Pages Inside OBS Studio
If you're using OBS Studio to display a website, YouTube page, dashboard, live poll, chat widget, or web application, you may notice so...
-
public struct CoOrds { public int x, y; public CoOrds( int p1, int p2) { x = p1; y = p2; } }
-
LM Studio Overview LM Studio is a desktop application designed for developing and experimenting with large language models (LLMs)...
