LoginSignup
3
1

More than 5 years have passed since last update.

Apache nifi のインストール

Last updated at Posted at 2019-02-05

やってみたのでメモ

前提条件

  • CentOS7
  • Java8インストール済み

手順

  1. パッケージをダウンロード

    # curl -LkvOf http://ftp.tsukuba.wide.ad.jp/software/apache/nifi/1.8.0/nifi-1.8.0-bin.tar.gz
    
  2. 破損がないか確認 sha256にハッシュ値がある

    # sha256sum nifi-1.8.0-bin.tar.gz
    11561e8d505e76af5060a8b039d7ba1ecfe966722e5b824b4d4eed60ea796071  nifi-1.8.0-bin.tar.gz
    
  3. 展開する

    # tar zxf nifi-1.8.0-bin.tar.gz
    
  4. パスワードを設定する

    # vi nifi-1.8.0/conf/nifi.properties
    
    nifi.properties
    nifi.sensitive.props.key=<password>
    
  5. 実行用ユーザを作成する

    # useradd apache
    
  6. サービスファイルを作成する

    # vi /usr/lib/systemd/system/nifi.service
    
    nifi.service
    [Unit]
    Description=Apache nifi daemon
    
    [Service]
    Type=forking
    User=apache
    Environment=JAVA_HOME=/usr/java/default
    ExecStart=/opt/nifi-1.8.0/bin/nifi.sh start
    ExecStop=/opt/nifi-1.8.0/bin/nifi.sh stop
    
    [Install]
    WantedBy=multi-user.target
    
  7. 起動する

    # systemctl start nifi
    

参考

3
1
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
3
1