Use the Configure Linux (Ubuntu) commands that are commonly used in Hadoop

Source: Internet
Author: User

Generate key:$ ssh-keygen-t Dsa-p "-F ~/.ssh/id_dsa$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keysthe -t key type can be specified with the-t option. If not specified, the RSA key for SSH-2 is generated by default. -f filename Specifies the key file name. Source: http://www.aboutyun.com/thread-6487-1-1.html Remote Login Execution shell command keySSH telnet and create the file remotely

SSH [email protected] ' mkdir-p. SSH && cat >>. Ssh/authorized_keys ' < ~/.ssh/id_rsa.pub

Source: http://www.aboutyun.com/thread-6977-1-1.html Remote ReplicationSCP Authorized_keys [email protected]:~/.ssh/authorized_keys_from_yangsudo scp-r/usr/hadoop [email protected]:~/ File Append contentCat Authorized_keys_from_yang >> Authorized_keys Unpack the package:sudo tar zxvf./jdk-7-linux-i586.tar.gz-c/USR/LIB/JVM file copy: (JDK copied to opt ) sudo cp-r jdk//opt file Movesudo mvJDK opt( sometimes without permission, so you have to add sudo)  File Change owner (below is the right to change the Hadoop folder)sudo chown-r Aboutyun:aboutyun Hadoop See if the port is being taken upsudo netstat-ap | grep 8080sudo netstat-ant|grep 3306 Proto recv-q send-q Local address Foreign Address State PID/PR Ogram name TCP 0 0 0.0.0.0:3306 0.0.0.0:* LISTEN 1651/mysqld meaning of the expressionThe default port for MySQL is 3306 open 0.0.0.0 represents your local network address after a connection for the external network address, there is a real IP address. Hadoop Start DebuggingOpen DEBUG Export hadoop_root_logger=debug,console Linux Packaging CommandsTar czvf my.tar.gz hadoop-2.4.0-src Kill a processKill Process Numberkill-9 Process Number Rpm-qa|grep Softnamethe meaning of the expression is:is to check out Softname software from the installed software.Here's how the Grep content object represents looking up "content" from "Objects" and printing|Pipe symbol, the output of the previous command (that is, the result) as input to the next commandRpm-qaRPM Management Command queries all installed softwareSoRpm-qa|grep Softnameis to check out Softname software from the installed software.   hive installation MySQL common commands   See if the software is installedNetstat-tap | grep MySQL To test MySQL remote connection success:mysql-h172.16.77.15-uroot-p123 mysql-h host address-u user name-P user Password View Character SetsShow variables like '%char% '; To Modify a character set:VI/ETC/MY.CNF add Default-character-set=utf8 under [client] create sudo without password loginTo set the Aboutyun user with no password sudo permissions: Chmode u+w/etc/sudoersaboutyun all= (root) nopasswd:allchmod u-w/etc/sudoers test: sudo ifconfig Ubuntu View Service List codesudo service--status-allsudo initctl list To view the file size:Du-sh HADOOP-2.7.0-SRC Pack ZipZip-r myfile.zip./*

Use the Configure Linux (Ubuntu) commands that are commonly used in Hadoop

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.