1
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

Macで最初にすること

Last updated at Posted at 2017-10-08

準備

キーボードの設定を変える.

↓基本はここ参照.
https://asahinablog.com/archives/2029
システム環境設定からキーボード選んで,入力ソースから日本語キーボードを追加.カタカナ,英字,ライブ変換はチェックを外す.
スクリーンショット 2017-10-08 23.57.56.png

Chromeを入れる

Chromeのページからダウンロードしてインストールするだけ.

Homebrew入れる

  1. app storeからXcodeをインストール
  2. Command Line Toolsをインストール
    terminalで
    $ xcode-select --install
  3. Homebrew入れる
    $ /usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Java入れる

terminalで

$ brew cask install java```

# 各種アプリ
## python
[こちらを見てやりました.](https://qiita.com/Haji-Fuji/items/9e3d6ca46eb02f3c241f)
## MeCabの入れ方
https://qiita.com/taroc/items/b9afd914432da08dafc8
```$ brew install mecab
$ brew install mecab-ipadic```

```$ brew install git curl xz
$ git clone --depth 1 git@github.com:neologd/mecab-ipadic-neologd.git
$ cd mecab-ipadic-neologd
$ ./bin/install-mecab-ipadic-neologd -n```

## R
```$ brew install R```
[jupyterで使えるようにする](https://irkernel.github.io/installation/)

## Emacs
```$ brew tap railwaycat/emacsmacport
$ brew install emacs-mac
$ brew linkapps```

## Hadoop
```$ brew install hadoop```
### Hadoopのテスト
πを計算
まずはhadoop-mapreduce-examples.jarを探す.
 ```$ find /usr/local/Cellar/hadoop | grep jar | grep example````
これで見つかったPATHを使ってπを計算
```$ hadoop jar /usr/local/Cellar/hadoop/2.8.1/libexec/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.8.1.jar pi 5 200```

Word Count
「プログラミングHive」に則り,適当なディレクトリでwc-inを作成.
```mkdir wc-in
  echo "bla bla" > wc-in/a.txt
  echo "bla wa wa" > wc-in/b.txt```
テキストファイルの用意ができたらコマンド実行
```hadoop jar /usr/local/Cellar/hadoop/2.8.1/libexec/share/hadoop/mapreduce/hadoop-mapreduce-examples-2.8.1.jar wordcount ./wc-in/ ./wc-out/```

## Hive
```brew install hive```
1
9
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
9

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?