Pig deployment Manual

Source: Internet
Author: User

installation environment:
the machine has only one machine
operating system: ubuntu 11.04 64 operating system
hadoop: version 1.0.2, installed on/usr/local/hadoop
Sun JDK: the version is 1.6.0 _ 31 64bit, install it in/usr/local/JDK
pig: Version 0.9.2, install it in/usr/local/pig
Installation Steps:
1. download

(1) download pig:Http://www.fightrice.com/mirrors/apache/pig/stable/pig-0.9.2.tar.gz
2. Installation
(1) Upload the pig installation package to the machine and log on as the root user:
Tar-xvf pig-0.9.2.tar.gz
(2) Move the extracted pig and change it to/usr/local/pig.
Rm-RF/usr/local/Pig
MV pig-0.9.2/usr/local/Pig

3. Configure pig
(1) Modify/usr/local/pig/bin/pig and add
Java_home =/usr/local/JDK
Hadoop_home =/usr/local/hadoop
(2) Add
FS. Default. Name = HDFS: // namenode_server_host: namenode_ipc_port mapred. Job. Tracker = jobtracker_server_ip: jobtracker_port

(4) change the directory owner of/usr/local/pig to hadoop
chown-r hadoop: hadoop/usr/local/pig

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.