Tachyon is basically installed in 02 ----- tachyon Local Mode

Source: Internet
Author: User

1. Configure the system environment

1. Clear default firewall rules

# Service iptables saveiptables: Save the firewall rules to/etc/sysconfig/iptables: [OK]

2. Disable SELinux

# cat /etc/sysconfig/selinux |grep SELINUX|grep -v ^#SELINUX=disabled SELINUXTYPE=targeted #

3. Configure the IP address

# cat/etc/sysconfig/network-scripts/ifcfg-eth0 |grep IPADDRIPADDR=192.168.1.1#

4. Configure the Host Name

# cat /etc/sysconfig/network|grep HOSTNAMEHOSTNAME=node1#

5. Configure hosts

# cat /etc/hosts |tail -n 1192.168.1.1    node1#

6. Time Synchronization

# ntpdate 192.168.1.254

7. Local SSH password-free Login

# ssh-keygen -t rsa -f ~/.ssh/id_rsa  -P ‘‘# ssh-copy-id -i node1The authenticity of host ‘node1 (::1)‘can‘t be established.RSA key fingerprint is23:2a:43:2d:a7:81:a3:56:a4:a8:65:35:03:8b:05:8b.Are you sure you want to continueconnecting (yes/no)? yesWarning: Permanently added ‘node1‘ (RSA) tothe list of known hosts.[email protected]‘s password: Now try logging into the machine, with"ssh ‘node1‘", and check in:  .ssh/authorized_keys to make sure we haven‘t added extra keysthat you weren‘t expecting. #

2. Configure the Java environment

1. Install JDK

# rpm -ivh jdk-7-linux-x64.rpm

2. Configure Java environment variables

# cat /etc/profile.d/java.shJAVA_HOME=/usr/java/defaultPATH=$JAVA_HOME/bin:$PATH# source /etc/profile.d/java.sh

3. Test the Java environment

# java -versionjava version "1.7.0_09-icedtea"OpenJDK Runtime Environment(rhel-2.3.4.1.el6_3-x86_64)OpenJDK 64-Bit Server VM (build 23.2-b09,mixed mode)#

3. Install tachyon in Local Mode

1. Download and decompress tachyon

# wgethttp://tachyon-project.org/downloads/tachyon-0.5.0-bin.tar.gz# tar -zxf tachyon-0.5.0-bin.tar.gz  -C /usr/local/# ln -s /usr/local/tachyon-0.5.0//usr/local/tachyon

2. Configure the tachyon environment variable

# cat /etc/profile.d/tachyon.shTACHYON_HOME=/usr/local/tachyonPATH=$TACHYON_HOME/bin:$PATH# source /etc/profile.d/tachyon.sh

3. Copy the tachyon configuration file

# pwd/usr/local/tachyon/conf# cp tachyon-env.sh.template tachyon-env.sh

4. Configure tachyon

# cat tachyon-env.sh |egrep ‘JAVA_HOME|TACHYON_MASTER_ADDRESS|TACHYON_UNDERFS_ADDRESS|TACHYON_WORKER_MEMORY_SIZE‘|grep-v ^#|grep -v ^‘ ‘JAVA_HOME=/usr/java/defaultexport JAVA="$JAVA_HOME/bin/java"export TACHYON_MASTER_ADDRESS=node1export TACHYON_UNDERFS_ADDRESS=$TACHYON_HOME/underfsexport TACHYON_WORKER_MEMORY_SIZE=512MB#

5. Configure slaves

# pwd/usr/local/tachyon/conf# cat slaves |grep -v ^#node1#

6. initialize the File System

# tachyon formatConnection to node1... Formatting TachyonWorker @ localhost.localdomainRemoving local data under folder:/mnt/ramdisk/tachyonworker/Connection to node1 closed.Formatting Tachyon Master @ node1Formatting JOURNAL_FOLDER:/usr/local/tachyon-0.5.0/libexec/../journal/Formatting UNDERFS_DATA_FOLDER:/usr/local/tachyon-0.5.0/libexec/../underfs/tmp/tachyon/dataFormatting UNDERFS_WORKERS_FOLDER:/usr/local/tachyon-0.5.0/libexec/../underfs/tmp/tachyon/workers#

7. Start the local mode of tachyon

# tachyon-start.sh localKilled 0 processesKilled 0 processesConnection to node1... Killed 0 processesConnection to node1 closed.Formatting RamFS: /mnt/ramdisk (512mb)Starting master @ node1Starting worker @ localhost.localdomain#

8. view the tachyon Process

# jps33403 TachyonWorker33782 Jps33367 TachyonMaster#

9. Test tachyon

# tachyon runTest Basic CACHE_THROUGH

10. Stop tachyon

 # tachyon-stop.sh Killed 1 processesKilled 1 processesConnection to node1... Killed 0 processesConnection to node1 closed.#

This article is from the "tachyon" blog, please be sure to keep this source http://ucloud.blog.51cto.com/3869454/1563958

Tachyon is basically installed in 02 ----- tachyon Local Mode

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.