IT 잡동사니

Zeppelin 설치(Windows) - UI 안나오는 이슈 해결, 원격 접속 허용

케키키케 2024. 7. 1. 23:51

 

 

1. 설치 파일 다운로드

파일 : zeppelin-0.11.1-bin-all.tgz 

https://zeppelin.apache.org/download.html

 

Download

<!-- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ag

zeppelin.apache.org

 

2. 압축 풀기

$ tar -zxvf zeppelin-0.11.1-bin-all.tgz

 

 

3. Zeppelin daemon 실행

$ cd zeppelin-0.11.1-bin-all/bin
$ zeppelin.cmd


$ cd zeppelin-0.11.1-bin-all/bin
$ zeppelin.cmd
브라우저에서 http://localhost:8080/#/ 접속 (default port: 8080)

 

실패~~~!!

아니 서버는 실행됐는데..

localhost:8080 접속은 가능하지만 화면에 아무것도 노출되지 않고 css를 못읽는다. 

 

서버 실행 시 아래와 같은 오류 발생.

java.io.FileNotFoundException: ...\zeppelin-0.11.1-bin-all\bin\zeppelin-web-angular\dist

 

1. 폴더 생성

일단 저 경로에 뭐가 없으니까 zeppelin-0.11.1-bin-all\bin 하위에 zeppelin-web-angular\dist 폴더 생성

 

2. 파일 복사

zeppelin-0.11.1-bin-all 아래에 zeppelin-web-angular-0.11.1.war 요런게 있음. 

이것을 zeppelin-0.11.1-bin-all\bin\zeppelin-web-angular\dist 하위로 복사

 

3. 압축 풀기

jar xvf zeppelin-web-angular-0.11.1.war

 

4. 다시 실행

$ cd zeppelin-0.11.1-bin-all/bin
$ zeppelin.cmd

 

리눅스에서는

bin/zeppelin-daemon.sh start

 

성공 ^^;

 

참고 -https://stackoverflow.com/questions/61078714/apache-zeppelin-not-loading-in-a-browser-in-windows-10

 

Apache Zeppelin not loading in a browser in windows 10

I followed the steps mentioned here https://gist.github.com/codspire/7b0955b9e67fe73f6118dad9539cbaa2 When entered "localhost:8080" in a browser nothing happens Hadoop version -- 3.1.3 Spark ver...

stackoverflow.com

 

 

원격 접속 허용

 

추가적으로 원격 접속을 위해 아래 세팅을 추가.

conf 디렉토리 하위에 zeppelin-site.xml.template를 복사해서 zeppelin-site.xml 파일을 만든다.

zeppelin.server.addr 의 value를 0.0.0.0 (모든 접속 허용) 으로 변경

<property>
  <name>zeppelin.server.addr</name>
  <value>0.0.0.0</value>
  <description>Server binding address. If you cannot connect to your web browser on WSL or Windows, change 127.0.0.1 to 0.0.0.0. It, however, causes security issues when you open your machine to the public</description>
</property>

 

zeppelin.server.xframe.options의 X-Frame-Options를 SAMEORIGIN -> ALLOW-FROM http://localhost:1234로 변경

접속을 허용할 주소와 포트를 입력해주면 된다. 예) localhost:1234

//변경 후
<property>
  <name>zeppelin.server.xframe.options</name>
  <value>X-Frame-Options: ALLOW-FROM http://localhost:1234</value>
  <description>The X-Frame-Options HTTP response header can be used to indicate whether or not a browser should be allowed to render a page in a frame/iframe/object.</description>
</property>

 

*참고

https://medium.com/apache-zeppelin-stories/%EC%98%A4%ED%94%88%EC%86%8C%EC%8A%A4-%EC%9D%BC%EA%B8%B0-2-apache-zeppelin-%EC%9D%B4%EB%9E%80-%EB%AC%B4%EC%97%87%EC%9D%B8%EA%B0%80-f3a520297938

 

오픈소스 일기 2: Apache Zeppelin 이란 무엇인가?

이번시간엔 필자가 Contribute하고 있는 오픈소스 프로젝트인 아파치 제플린(Apache Zeppelin)에 대해서 다뤄보도록 하겠다. 이미 잘 알고 계시는 분들보다 이것이 뭔지 잘 모르는 분들의 이해를 돕고

medium.com

 

https://zeppelin.apache.org/docs/0.10.0/setup/security/http_security_headers.html

 

Apache Zeppelin 0.10.0 Documentation: Setting up HTTP Response Headers

<!-- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ag

zeppelin.apache.org

 

 

 

Apache Zeppelin 0.10.0 Documentation: Setting up HTTP Response Headers

<!-- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or ag

zeppelin.apache.org