mac 命令

2017-08-09  本文已影响0人  虹端

目录的树形结构

find . -print | sed -e 's;[^/]*/;|____;g;s;____|; |;g'


Flume + kafka + HDFS构建日志采集系统

http://blog.csdn.net/shift_alt_ctrl/article/details/69944581


zookeeper支持brew安装

brewinfo zookeeper

brew installzookeeper

ls /usr/local/etc/zookeeper

less -N /usr/local/etc/zookeeper/zoo.cfg

执行命令zkServer

查看zookeeper运行及状态

安装后,可以看到zookeeper提供了zkCli等工具进行.

$zkCli


mac kafka 环境搭建

1.brew install kafka

注意:安装目录:/usr/local/Cellar/kafka/0.10.2.0

2.安装的配置文件位置

/usr/local/etc/kafka/server.properties

/usr/local/etc/kafka/zookeeper.properties

http://blog.csdn.net/u010046908/article/details/62229015


125ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)" < /dev/null 2> /dev/null ; brew install caskroom/cask/brew-cask 2> /dev/null

126brew cask install rdm

127brew cask install remote-desktop-manager

128brew install qt5

131ps -el|grep redis

132ps -el

133ps -el | grep java

cd /usr/local/nexus-latest-bundle/nexus-2.8.1-01/

163cd bin/

164./nexus start

npm install vue-router --save

185ls

186npm install -g vue-cli

187sudo npm install -g vue-cli

188vue init webpack crm

cat id_dsa.pub >> ~/.ssh/authorized_keys

271ssh-keygen -t dsa -P '' -f ~/.ssh/id_dsa

272cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys

273ssh localhost

vi libexec/etc/hadoop/core-site.xml

284vi libexec/etc/hadoop/hdfs-site.xml

285cp libexec/etc/hadoop/mapred-site.xml.template libexec/etc/hadoop/mapred-site.xml

286vi libexec/etc/hadoop/mapred-site.xml

287vi libexec/etc/hadoop/yarn-site.xml

288ls

289cd libexec/

290ls

291bin/hdfs namenode -format

bin/hdfs dfs -mkdir /user

316bin/hdfs dfs -mkdir /user/robin

317bin/hdfs dfs -put etc/hadoop input

318bin/hdfs dfs -mkdir /user

bin/hdfs dfs -mkdir /user

351bin/hdfs dfs -put etc/hadoop input

bin/hadoop jar share/hadoop/mapreduce/hadoop-mapreduce-examples-2.7.2.jar grep input output 'dfs[a-z.]+'

360bin/hdfs dfs -put etc/hadoop input

brew install mongodb

cd /usr/local/Cellar/hadoop/2.8.0/

455sbin/start-dfs.sh

hadoop namenode -format

上一篇下一篇

猜你喜欢

热点阅读