fs refers to any file system, it could be local or HDFS but dfs refers to only HDFS file system.
You can see definitions of the two commands (hadoop fs & hadoop dfs) in $HADOOP_HOME/bin/hadoop
VIM | |
In Vi Improved to change or set desired syntax highlighting mode to MODE you have to type in VIM's command line: | |
:set syntax=MODE | |
It is very usefull when your file does not have standard extension or you are editting file with two languages in it, eg. AWK commands in a BASH script. | |
You can set AWK mode :set syntax=awk |
fs refers to any file system, it could be local or HDFS but dfs refers to only HDFS file system.
You can see definitions of the two commands (hadoop fs & hadoop dfs) in $HADOOP_HOME/bin/hadoop
@A - @B
my @A = qw(1 2 3 4 5 6 7 8 9);
my @B = qw(3 5 9);
my %cnt = ();
map { $cnt{$_}-- } @B;
SELECT MAX(counted) FROM
(
SELECT COUNT(*) AS counted
FROM table_actions
WHERE status = "good"
現在形 が望ましい。 プログラマが、Gitのレポジトリに対して、このようにふるまいを変えろと命令している様をイメージすればよい。
Describe your changes in imperative mood, e.g. "make xyzzy do frotz" instead of "[This patch] makes xyzzy do frotz" or "[I] changed xyzzy to do frotz", as if you are giving orders to the codebase to change its behaviour. Try to make sure your explanation can be understood without external resources.
== 10進法 -> 2進法, 2進法 -> 10進法 | |
http://detail.chiebukuro.yahoo.co.jp/qa/question_detail/q1210460042 | |
- 2 -> 10 | |
ex) 1111001 | |
1*2^6 + 1*2^5 + 1*2^4 + 1*2^3 + 1*2^0 | |
64+32+16+8+1 |
# git の branch 名を表示する方法 | |
#.bashrc | |
# git settings | |
source /usr/local/etc/bash_completion.d/git-prompt.sh | |
source /usr/local/etc/bash_completion.d/git-completion.bash | |
GIT_PS1_SHOWDIRTYSTATE=true | |
export PS1='\[\033[32m\]\u@\h\[\033[00m\]:\[\033[34m\]\w\[\033[31m\]$(__git_ps1)\[\033[00m\]\$ ' | |
ls, buffers, files 開いているバッファ一覧(バッファリスト)を表示する | |
bfirst,bf 先頭のバッファに移動する | |
blast,bl 最後のバッファに移動する | |
bnext,bn 次のバッファに移動する | |
bprev,bp 前のバッファに移動する | |
b NUM NUM番目のバッファに移動する | |
badd バッファにファイルをロードする | |
bdelete バッファをアンロードする | |
chsh -s /usr/local/bin/zsh |