0
0

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 1 year has passed since last update.

M1 MacbookにHortonworks HDP sandbox docker 環境をインストール

Posted at

1. スクリプトをダウンロード、解凍

その後,解凍したフォルダ内に移動しておく

2. docker-deploy-hdp30.sh を編集

AS-IS

docker run --privileged --name $name -h $hostname --network=cda --network-alias=$hostname -d "$registry/$name:$version"

TO-BE

docker run --platform linux/amd64 --privileged --name $name -h $hostname --network=cda --network-alias=$hostname -d "$registry/$name:$version"

(--platform linux/amd64 を追加)

3. assets/generate-proxy-deploy-script.sh を編集

AS-IS

docker rm -f sandbox-proxy 2>/dev/null
docker run --name sandbox-proxy --network=cda \\
-v $absPath/assets/nginx.conf:/etc/nginx/nginx.conf \\
-v $absPath/sandbox/proxy/conf.d:/etc/nginx/conf.d \\
-v $absPath/sandbox/proxy/conf.stream.d:/etc/nginx/conf.stream.d \\
EOF

TO-BE

docker rm -f sandbox-proxy 2>/dev/null
docker run --name sandbox-proxy --network=cda \\
--platform linux/amd64 \\
-v $absPath/assets/nginx.conf:/etc/nginx/nginx.conf \\
-v $absPath/sandbox/proxy/conf.d:/etc/nginx/conf.d \\
-v $absPath/sandbox/proxy/conf.stream.d:/etc/nginx/conf.stream.d \\
EOF

(--platform linux/amd64 を追加)

4. 実行

(解凍したフォルダ内に移動したのち)

$bash docker-deploy-hdp30.sh 
0
0
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
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?