start new:
tmux
start new with session name:
tmux new -s myname
| Lifecycle Phase Description | |
| validate Validates whether project is correct and all necessary information is available to complete the build process. | |
| initialize Initializes build state, for example set properties | |
| generate-sources Generate any source code to be included in compilation phase. | |
| process-sources Process the source code, for example, filter any value. | |
| generate-resources Generate resources to be included in the package. | |
| process-resources Copy and process the resources into the destination directory, ready for packaging phase. | |
| compile Compile the source code of the project. | |
| process-classes Post-process the generated files from compilation, for example to do bytecode enhancement/optimization on Java classes. | |
| generate-test-sources Generate any test source code to be included in compilation phase. |
| import java.io.IOException; | |
| import org.apache.hadoop.conf.Configuration; | |
| import org.apache.hadoop.fs.Path; | |
| import org.apache.hadoop.io.IntWritable; | |
| import org.apache.hadoop.io.LongWritable; | |
| import org.apache.hadoop.io.Text; | |
| import org.apache.hadoop.io.NullWritable; | |
| import org.apache.hadoop.mapreduce.Job; | |
| import org.apache.hadoop.mapreduce.Mapper; |
| import os | |
| folder_name = 'D:/issue/' | |
| for i in range(1, 79): | |
| fileName = folder_name + str(i) + ".tsv" | |
| if not os.path.isfile(fileName): | |
| with open(fileName, 'w') as f: | |
| f.write('word\tcount\n') | |
| f.close() |
| import os | |
| # Current working directory where files and folders are present. | |
| rootDir = os.getcwd() | |
| # Destination directory to copy files. | |
| destinationDir = 'D:/GBR/' | |
| # Walk thru the directories in this root directory. | |
| for dirName, subdirList, fileList in os.walk(rootDir): |
| sudo service iptables save | |
| sudo service iptables stop | |
| sudo chkconfig iptables off | |
| # Ubuntu | |
| sudo ufw status | |
| sudo ufw off |
| # This shell script displays hostname and IP Address of the Ubuntu machine before the login prompt. | |
| # Add this file to '/etc/network/if-up.d/' and '/etc/network/if-post-down.d/' folders and mark them as executables. | |
| # Display Ubuntu default information [the current version of Ubuntu]. | |
| cat /etc/issue.net > /etc/issue | |
| # Display the hostname. | |
| hostname >> /etc/issue | |
| # Display the IP Address of eth0. |
| # List of plugins | |
| # Supports `github_username/repo` or full git URLs | |
| set -g @tpm_plugins " \ | |
| tmux-plugins/tpm \ | |
| tmux-plugins/tmux-sensible \ | |
| tmux-plugins/tmux-resurrect \ | |
| " | |
| # Other examples: | |
| # github_username/plugin_name \ |
| # Not advisable. Do this ONLY if you understand what you are doing! | |
| # This will terminate all your tmux or screen sessions, if you have any work yet to be saved, you will not be able to recover if you do this. | |
| # Kill all the tmux sessions | |
| tmux ls | grep : | cut -d. -f1 | awk '{print substr($1, 0, length($1)-1)}' | xargs kill | |
| # Kill all the detached screen sessions | |
| screen -ls | grep Detached | cut -d. -f1 | awk '{print $1}' | xargs kill |
| # Steps to build and install tmux from source. | |
| # Takes < 25 seconds on EC2 env [even on a low-end config instance]. | |
| VERSION=2.7 | |
| sudo yum -y remove tmux | |
| sudo yum -y install wget tar libevent-devel ncurses-devel | |
| wget https://github.com/tmux/tmux/releases/download/${VERSION}/tmux-${VERSION}.tar.gz | |
| tar xzf tmux-${VERSION}.tar.gz | |
| rm -f tmux-${VERSION}.tar.gz | |
| cd tmux-${VERSION} |