Apache Flink 1.9.2 Docker image shows no web interface / blank page for job manager

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

Apache Flink 1.9.2 Docker image shows no web interface / blank page for job manager

Kaymak, Tobias
Hello,

I am trying out the Flink Docker image 1.9.2 (1.9.1 works) - but the Jobmanager shows just a blank page when accessing it's webinterface on port 8081.

I enabled DEBUG/TRACE logging and it looks ok to me when I make the request:

2020-02-27 10:11:42,439 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/ Method:GET                               
2020-02-27 10:11:42,440 DEBUG org.apache.flink.runtime.rest.handler.legacy.files.StaticFileServerHandler  - Responding with file '/tmp/flink-web-19e3b6a9-f464-49bf-ad94-3237ae898bc7/flink-web-ui/index.html'
2020-02-27 10:11:42,578 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/styles.30d0912c1ece284d8d9a.css Method:GET
2020-02-27 10:11:42,579 DEBUG org.apache.flink.runtime.rest.handler.legacy.files.StaticFileServerHandler  - Responding with file '/tmp/flink-web-19e3b6a9-f464-49bf-ad94-3237ae898bc7/flink-web-ui/styles.30d0912c1ece284d8d9a.css'
2020-02-27 10:11:42,648 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/polyfills.b37850e8279bc3caafc9.js Method:GET
2020-02-27 10:11:42,649 DEBUG org.apache.flink.runtime.rest.handler.legacy.files.StaticFileServerHandler  - Responding with file '/tmp/flink-web-19e3b6a9-f464-49bf-ad94-3237ae898bc7/flink-web-ui/polyfills.b37850e8279bc3caafc9.js'
2020-02-27 10:11:42,651 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/runtime.440aa244803781d5f83e.js Method:GET
2020-02-27 10:11:42,652 DEBUG org.apache.flink.runtime.rest.handler.legacy.files.StaticFileServerHandler  - Responding with file '/tmp/flink-web-19e3b6a9-f464-49bf-ad94-3237ae898bc7/flink-web-ui/runtime.440aa244803781d5f83e.js'
2020-02-27 10:11:42,658 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/main.177039bdbab11da4f8ac.js Method:GET
2020-02-27 10:11:42,658 DEBUG org.apache.flink.runtime.rest.handler.legacy.files.StaticFileServerHandler  - Responding with file '/tmp/flink-web-19e3b6a9-f464-49bf-ad94-3237ae898bc7/flink-web-ui/main.177039bdbab11da4f8ac.js'
2020-02-27 10:11:42,922 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/config Method:GET

I tried Chrome (newest version) and Safari, both with Incognito modes as well. The webserver returns Javascript and HTML to the browser - so I am very puzzled about what could be wrong here?

image.png

Best,
Tobias
Reply | Threaded
Open this post in threaded view
|

Re: Apache Flink 1.9.2 Docker image shows no web interface / blank page for job manager

Rasik Sheth
This usually happens when Content-Type: text/html; is missing in response headers. can you check if it is there.

Rasik

On Thu, Feb 27, 2020 at 5:24 AM Kaymak, Tobias <[hidden email]> wrote:
Hello,

I am trying out the Flink Docker image 1.9.2 (1.9.1 works) - but the Jobmanager shows just a blank page when accessing it's webinterface on port 8081.

I enabled DEBUG/TRACE logging and it looks ok to me when I make the request:

2020-02-27 10:11:42,439 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/ Method:GET                               
2020-02-27 10:11:42,440 DEBUG org.apache.flink.runtime.rest.handler.legacy.files.StaticFileServerHandler  - Responding with file '/tmp/flink-web-19e3b6a9-f464-49bf-ad94-3237ae898bc7/flink-web-ui/index.html'
2020-02-27 10:11:42,578 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/styles.30d0912c1ece284d8d9a.css Method:GET
2020-02-27 10:11:42,579 DEBUG org.apache.flink.runtime.rest.handler.legacy.files.StaticFileServerHandler  - Responding with file '/tmp/flink-web-19e3b6a9-f464-49bf-ad94-3237ae898bc7/flink-web-ui/styles.30d0912c1ece284d8d9a.css'
2020-02-27 10:11:42,648 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/polyfills.b37850e8279bc3caafc9.js Method:GET
2020-02-27 10:11:42,649 DEBUG org.apache.flink.runtime.rest.handler.legacy.files.StaticFileServerHandler  - Responding with file '/tmp/flink-web-19e3b6a9-f464-49bf-ad94-3237ae898bc7/flink-web-ui/polyfills.b37850e8279bc3caafc9.js'
2020-02-27 10:11:42,651 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/runtime.440aa244803781d5f83e.js Method:GET
2020-02-27 10:11:42,652 DEBUG org.apache.flink.runtime.rest.handler.legacy.files.StaticFileServerHandler  - Responding with file '/tmp/flink-web-19e3b6a9-f464-49bf-ad94-3237ae898bc7/flink-web-ui/runtime.440aa244803781d5f83e.js'
2020-02-27 10:11:42,658 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/main.177039bdbab11da4f8ac.js Method:GET
2020-02-27 10:11:42,658 DEBUG org.apache.flink.runtime.rest.handler.legacy.files.StaticFileServerHandler  - Responding with file '/tmp/flink-web-19e3b6a9-f464-49bf-ad94-3237ae898bc7/flink-web-ui/main.177039bdbab11da4f8ac.js'
2020-02-27 10:11:42,922 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/config Method:GET

I tried Chrome (newest version) and Safari, both with Incognito modes as well. The webserver returns Javascript and HTML to the browser - so I am very puzzled about what could be wrong here?

image.png

Best,
Tobias
--




R a s i k
[hidden email]

If you can't fly, RUN!  If you can't run, WALK!! If you can't walk, CRAWL!!!
But whatever you do, keep moving towards your
GOAL
Reply | Threaded
Open this post in threaded view
|

Re: Apache Flink 1.9.2 Docker image shows no web interface / blank page for job manager

Kaymak, Tobias
Content type looks ok:

curl -i localhost:8081                                                                                            
HTTP/1.1 200 OK                                                                                                        
Content-Type: text/html                                                                                                
Date: Thu, 27 Feb 2020 12:48:08 GMT                                                                                    
Expires: Thu, 27 Feb 2020 12:53:08 GMT                                                                                 
Cache-Control: private, max-age=300                                                                                    
Last-Modified: Thu, 27 Feb 2020 12:43:36 GMT                                                                           
Connection: keep-alive                                                                                                 
content-length: 2137            


On Thu, Feb 27, 2020 at 12:48 PM Rasik Sheth <[hidden email]> wrote:
This usually happens when Content-Type: text/html; is missing in response headers. can you check if it is there.

Rasik

On Thu, Feb 27, 2020 at 5:24 AM Kaymak, Tobias <[hidden email]> wrote:
Hello,

I am trying out the Flink Docker image 1.9.2 (1.9.1 works) - but the Jobmanager shows just a blank page when accessing it's webinterface on port 8081.

I enabled DEBUG/TRACE logging and it looks ok to me when I make the request:

2020-02-27 10:11:42,439 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/ Method:GET                               
2020-02-27 10:11:42,440 DEBUG org.apache.flink.runtime.rest.handler.legacy.files.StaticFileServerHandler  - Responding with file '/tmp/flink-web-19e3b6a9-f464-49bf-ad94-3237ae898bc7/flink-web-ui/index.html'
2020-02-27 10:11:42,578 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/styles.30d0912c1ece284d8d9a.css Method:GET
2020-02-27 10:11:42,579 DEBUG org.apache.flink.runtime.rest.handler.legacy.files.StaticFileServerHandler  - Responding with file '/tmp/flink-web-19e3b6a9-f464-49bf-ad94-3237ae898bc7/flink-web-ui/styles.30d0912c1ece284d8d9a.css'
2020-02-27 10:11:42,648 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/polyfills.b37850e8279bc3caafc9.js Method:GET
2020-02-27 10:11:42,649 DEBUG org.apache.flink.runtime.rest.handler.legacy.files.StaticFileServerHandler  - Responding with file '/tmp/flink-web-19e3b6a9-f464-49bf-ad94-3237ae898bc7/flink-web-ui/polyfills.b37850e8279bc3caafc9.js'
2020-02-27 10:11:42,651 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/runtime.440aa244803781d5f83e.js Method:GET
2020-02-27 10:11:42,652 DEBUG org.apache.flink.runtime.rest.handler.legacy.files.StaticFileServerHandler  - Responding with file '/tmp/flink-web-19e3b6a9-f464-49bf-ad94-3237ae898bc7/flink-web-ui/runtime.440aa244803781d5f83e.js'
2020-02-27 10:11:42,658 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/main.177039bdbab11da4f8ac.js Method:GET
2020-02-27 10:11:42,658 DEBUG org.apache.flink.runtime.rest.handler.legacy.files.StaticFileServerHandler  - Responding with file '/tmp/flink-web-19e3b6a9-f464-49bf-ad94-3237ae898bc7/flink-web-ui/main.177039bdbab11da4f8ac.js'
2020-02-27 10:11:42,922 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/config Method:GET

I tried Chrome (newest version) and Safari, both with Incognito modes as well. The webserver returns Javascript and HTML to the browser - so I am very puzzled about what could be wrong here?

image.png

Best,
Tobias
--




R a s i k
[hidden email]

If you can't fly, RUN!  If you can't run, WALK!! If you can't walk, CRAWL!!!
But whatever you do, keep moving towards your
GOAL


--

Tobias Kaymak
Data Engineer
Data Intelligence

[hidden email]
www.ricardo.ch
Theilerstrasse 1a, 6300 Zug
Reply | Threaded
Open this post in threaded view
|

Re: Apache Flink 1.9.2 Docker image shows no web interface / blank page for job manager

Yang Wang
I use the following command to have a test on my Mac.
It seems to work pretty well. The webui could be shown normally.

$ docker run -d -p 8081:8081 flink:1.9.2-scala_2.11 jobmanager


So could you inspect in Chrome and check whether all the resources
could be loaded successfully?


Best,
Yang

Kaymak, Tobias <[hidden email]> 于2020年2月27日周四 下午8:50写道:
Content type looks ok:

curl -i localhost:8081                                                                                            
HTTP/1.1 200 OK                                                                                                        
Content-Type: text/html                                                                                                
Date: Thu, 27 Feb 2020 12:48:08 GMT                                                                                    
Expires: Thu, 27 Feb 2020 12:53:08 GMT                                                                                 
Cache-Control: private, max-age=300                                                                                    
Last-Modified: Thu, 27 Feb 2020 12:43:36 GMT                                                                           
Connection: keep-alive                                                                                                 
content-length: 2137            


On Thu, Feb 27, 2020 at 12:48 PM Rasik Sheth <[hidden email]> wrote:
This usually happens when Content-Type: text/html; is missing in response headers. can you check if it is there.

Rasik

On Thu, Feb 27, 2020 at 5:24 AM Kaymak, Tobias <[hidden email]> wrote:
Hello,

I am trying out the Flink Docker image 1.9.2 (1.9.1 works) - but the Jobmanager shows just a blank page when accessing it's webinterface on port 8081.

I enabled DEBUG/TRACE logging and it looks ok to me when I make the request:

2020-02-27 10:11:42,439 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/ Method:GET                               
2020-02-27 10:11:42,440 DEBUG org.apache.flink.runtime.rest.handler.legacy.files.StaticFileServerHandler  - Responding with file '/tmp/flink-web-19e3b6a9-f464-49bf-ad94-3237ae898bc7/flink-web-ui/index.html'
2020-02-27 10:11:42,578 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/styles.30d0912c1ece284d8d9a.css Method:GET
2020-02-27 10:11:42,579 DEBUG org.apache.flink.runtime.rest.handler.legacy.files.StaticFileServerHandler  - Responding with file '/tmp/flink-web-19e3b6a9-f464-49bf-ad94-3237ae898bc7/flink-web-ui/styles.30d0912c1ece284d8d9a.css'
2020-02-27 10:11:42,648 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/polyfills.b37850e8279bc3caafc9.js Method:GET
2020-02-27 10:11:42,649 DEBUG org.apache.flink.runtime.rest.handler.legacy.files.StaticFileServerHandler  - Responding with file '/tmp/flink-web-19e3b6a9-f464-49bf-ad94-3237ae898bc7/flink-web-ui/polyfills.b37850e8279bc3caafc9.js'
2020-02-27 10:11:42,651 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/runtime.440aa244803781d5f83e.js Method:GET
2020-02-27 10:11:42,652 DEBUG org.apache.flink.runtime.rest.handler.legacy.files.StaticFileServerHandler  - Responding with file '/tmp/flink-web-19e3b6a9-f464-49bf-ad94-3237ae898bc7/flink-web-ui/runtime.440aa244803781d5f83e.js'
2020-02-27 10:11:42,658 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/main.177039bdbab11da4f8ac.js Method:GET
2020-02-27 10:11:42,658 DEBUG org.apache.flink.runtime.rest.handler.legacy.files.StaticFileServerHandler  - Responding with file '/tmp/flink-web-19e3b6a9-f464-49bf-ad94-3237ae898bc7/flink-web-ui/main.177039bdbab11da4f8ac.js'
2020-02-27 10:11:42,922 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/config Method:GET

I tried Chrome (newest version) and Safari, both with Incognito modes as well. The webserver returns Javascript and HTML to the browser - so I am very puzzled about what could be wrong here?

image.png

Best,
Tobias
--




R a s i k
[hidden email]

If you can't fly, RUN!  If you can't run, WALK!! If you can't walk, CRAWL!!!
But whatever you do, keep moving towards your
GOAL


--

Tobias Kaymak
Data Engineer
Data Intelligence

[hidden email]
www.ricardo.ch
Theilerstrasse 1a, 6300 Zug
Reply | Threaded
Open this post in threaded view
|

Re: Apache Flink 1.9.2 Docker image shows no web interface / blank page for job manager

Kaymak, Tobias
Hello,

this seems to be related to an open issue with Apache Beam's 2.19.0 compatibility with Flink 1.9.2 and not directly related to Apache Flink.

Have a nice day :)

Best,
Tobias

On Fri, Feb 28, 2020 at 4:05 AM Yang Wang <[hidden email]> wrote:
I use the following command to have a test on my Mac.
It seems to work pretty well. The webui could be shown normally.

$ docker run -d -p 8081:8081 flink:1.9.2-scala_2.11 jobmanager


So could you inspect in Chrome and check whether all the resources
could be loaded successfully?


Best,
Yang

Kaymak, Tobias <[hidden email]> 于2020年2月27日周四 下午8:50写道:
Content type looks ok:

curl -i localhost:8081                                                                                            
HTTP/1.1 200 OK                                                                                                        
Content-Type: text/html                                                                                                
Date: Thu, 27 Feb 2020 12:48:08 GMT                                                                                    
Expires: Thu, 27 Feb 2020 12:53:08 GMT                                                                                 
Cache-Control: private, max-age=300                                                                                    
Last-Modified: Thu, 27 Feb 2020 12:43:36 GMT                                                                           
Connection: keep-alive                                                                                                 
content-length: 2137            


On Thu, Feb 27, 2020 at 12:48 PM Rasik Sheth <[hidden email]> wrote:
This usually happens when Content-Type: text/html; is missing in response headers. can you check if it is there.

Rasik

On Thu, Feb 27, 2020 at 5:24 AM Kaymak, Tobias <[hidden email]> wrote:
Hello,

I am trying out the Flink Docker image 1.9.2 (1.9.1 works) - but the Jobmanager shows just a blank page when accessing it's webinterface on port 8081.

I enabled DEBUG/TRACE logging and it looks ok to me when I make the request:

2020-02-27 10:11:42,439 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/ Method:GET                               
2020-02-27 10:11:42,440 DEBUG org.apache.flink.runtime.rest.handler.legacy.files.StaticFileServerHandler  - Responding with file '/tmp/flink-web-19e3b6a9-f464-49bf-ad94-3237ae898bc7/flink-web-ui/index.html'
2020-02-27 10:11:42,578 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/styles.30d0912c1ece284d8d9a.css Method:GET
2020-02-27 10:11:42,579 DEBUG org.apache.flink.runtime.rest.handler.legacy.files.StaticFileServerHandler  - Responding with file '/tmp/flink-web-19e3b6a9-f464-49bf-ad94-3237ae898bc7/flink-web-ui/styles.30d0912c1ece284d8d9a.css'
2020-02-27 10:11:42,648 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/polyfills.b37850e8279bc3caafc9.js Method:GET
2020-02-27 10:11:42,649 DEBUG org.apache.flink.runtime.rest.handler.legacy.files.StaticFileServerHandler  - Responding with file '/tmp/flink-web-19e3b6a9-f464-49bf-ad94-3237ae898bc7/flink-web-ui/polyfills.b37850e8279bc3caafc9.js'
2020-02-27 10:11:42,651 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/runtime.440aa244803781d5f83e.js Method:GET
2020-02-27 10:11:42,652 DEBUG org.apache.flink.runtime.rest.handler.legacy.files.StaticFileServerHandler  - Responding with file '/tmp/flink-web-19e3b6a9-f464-49bf-ad94-3237ae898bc7/flink-web-ui/runtime.440aa244803781d5f83e.js'
2020-02-27 10:11:42,658 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/main.177039bdbab11da4f8ac.js Method:GET
2020-02-27 10:11:42,658 DEBUG org.apache.flink.runtime.rest.handler.legacy.files.StaticFileServerHandler  - Responding with file '/tmp/flink-web-19e3b6a9-f464-49bf-ad94-3237ae898bc7/flink-web-ui/main.177039bdbab11da4f8ac.js'
2020-02-27 10:11:42,922 TRACE org.apache.flink.runtime.rest.FileUploadHandler               - Received request. URL:/config Method:GET

I tried Chrome (newest version) and Safari, both with Incognito modes as well. The webserver returns Javascript and HTML to the browser - so I am very puzzled about what could be wrong here?

image.png

Best,
Tobias
--




R a s i k
[hidden email]

If you can't fly, RUN!  If you can't run, WALK!! If you can't walk, CRAWL!!!
But whatever you do, keep moving towards your
GOAL


--

Tobias Kaymak
Data Engineer
Data Intelligence

[hidden email]
www.ricardo.ch
Theilerstrasse 1a, 6300 Zug


--

Tobias Kaymak
Data Engineer
Data Intelligence

[hidden email]
www.ricardo.ch
Theilerstrasse 1a, 6300 Zug