Help us understand the problem. What is going on with this article?

dockerでSPARK SQL

More than 3 years have passed since last update.

DockerでSPARKを。

といっても、コンテナを一から作成するのは大変なので、sequenceiq/sparkを使わせてもらいます。
投稿時点では、1.5.1が最新でした。

Dockerのインストールは省略

因みに使用バージョンは1.9.0

Docker pull

といっても、導入に関しては下記に記載してくれているのでそのまま実行します。
https://hub.docker.com/r/sequenceiq/spark/

> docker pull sequenceiq/spark:1.5.1

pull出来たら実行ですが、4040ポートも足してあげたいので下記のように。

> docker run -it -p 8088:8088 -p 8042:8042 -p 4040:4040 -h sandbox --name="spark" sequenceiq/spark:1.5.1 /bin/bash

起動したら、

> cd /usr/local/spark
> bin/spark-sql --master yarn-client

Hadoop

yarnで起動したので、下記からクラスタを見れる。
http://127.0.0.1:8088/cluster

All Applications 2015-11-20 00-20-41.png

hostsにsandbox 127.0.0.1を追加しておけば、リンクからSpark Jobsも見れます。

SparkSQL::172.17.0.3 - Details for Stage 1 (Attempt 0) 2015-11-20 00-22-32.png

dockerだからいぢったらcommitしておかないと後で泣いちゃうかも。

Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
Comments
Sign up for free and join this conversation.
If you already have a Qiita account
Why do not you register as a user and use Qiita more conveniently?
You need to log in to use this function. Qiita can be used more conveniently after logging in.
You seem to be reading articles frequently this month. Qiita can be used more conveniently after logging in.
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away