Enter HBase Shell Console$HBASE _home/bin/hbase ShellIf you have Kerberos authentication, you need to use the appropriate keytab for authentication (using the Kinit command), and then use the HBase shell to enter the certificate successfully. You
1. "Type" detection of a file name (presence or absence), such as TEST-E filename-E Does the "file name" exist? Common-F is the "file name" an archive (file)? Common-D is the "file name" directory? Common-B is the "file name" a block device
Typically, as a deployment script for an application, the first task that begins is to create a dedicated (dedicated) user and user group for the current app. This script is very simple, a reference sample is attached here:[Plain]View Plaincopy
There are two ways to bring the echo output color
Define color variables in shell scripts, use ECHO-E to call variables
When defining a variable, define the ECHO-E in the variable, and then output the variable
Shell script that
Shell function calls are divided into two types:The first way, a bit like the C language Call function style, directly to the function of the execution of the result copy to the variable! However, the assignment process is not the same as the C
Problems with the interception of shell strings:The Linux shell intercepts the first 8 bits of a character variable, with the following methods:1.expr substr "$a" 1 82.echo $a |awk ' {print substr (, 1,8)} '3.echo $a |cut-c1-84.expr $a: ' \ (. \ \).
First, Introduction[equivalent to test, which is the internal command of bash, the coreutils package for the Gnu/linux system usually takes/usr/bin/test and/usr/bin/[commands. If we don't specify the absolute path, we usually use Bash's own commands.
Phenomenon: Hourly data in hive tables, which are missing one hours every few days, are found to fail when data aggregation cat is done, resulting in: Modify the script to do the following solution: # #merge 5min data into hour data
/********************************************************************** Author:samson* date:04/18/2014* Test Platform:* Linux Ubuntu 3.2.0-58-generic-pae* GNU Bash, version 4.2.39* *******************************************************************/#
Bash supports many operators, including arithmetic operators, relational operators, Boolean operators, string operators, and file test operators.Native bash does not support simple math operations, but can be implemented with other commands, such as
13th Chapter Landing EnvironmentWhen logging into the system, enter the user name and password, and if the authentication passes, enter the login environment.Logon processFile/etc/passwd$HOME. ProfileCustom $HOME. profile/etc/passwd file parsing
"Broken Shell" (Shellshock) bug fixBackground: distance from" broken Shell "(Shellshock) A loophole broke out in the past two weeks (announced September 24, 2014). I'm sure a lot of people have heard of this. The vulnerability rating of 10, which
After adding some interceptor code, the CPU alarm shows that CPU utilization exceeds 100%.To find out exactly what code consumes too much resources, find a blog post from the Web, reproduced as follows:http://blog.csdn.net/guixunlong/article/details/
SET commandIt can be used to customize the shell environment and use the option "O" to enable or disable the option. For example, enable option: set-O option, and disable option: Set + O.
Shopt commandIs an alternative to the set command, which is
By default, bash shell is a non-typed footfall language. Unless specifically declared with declare, it does not distinguish whether a variable is an integer variable, a floating point variable, or a string variable. All variables in bash shell are
Labels: Bash basics and standard I/O pipeline shell programming Basics
1. Bash basics and configurations
From the user's perspective, the shell type:
Logon Shell
Log On Through a terminal normally
Su-Username
Su-l Username
Non-Logon Shell
Su
Use if... then
Single-layer, simple conditional
If [conditional statement]; then Command work content that can be executed when the conditional statement is set; FI
& Stands for and;
| Represents or;
["$ YN" = "Y"-
Install tomcat in linux (centos) (use shell scripts to install tomcat as a service) and centostomcat1. Download tomcatDownload the linuxlinuxversion (tar.gz) from http://tomcat.apache.org/download-70.cgi)2. decompress, upload, and grant
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