You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@flink.apache.org by "Kaymak, Tobias" <to...@ricardo.ch> on 2020/02/27 10:24:12 UTC

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

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: image.png]

Best,
Tobias

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

Posted by "Kaymak, Tobias" <to...@ricardo.ch>.
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 <da...@gmail.com> 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 <to...@ricardo.ch> 于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 <ra...@gmail.com> 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 <to...@ricardo.ch>
>>> 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: image.png]
>>>>
>>>> Best,
>>>> Tobias
>>>>
>>> --
>>>
>>>
>>>
>>>
>>> *■*R a s i k
>>> rasik.sheth@gmail.com
>>>
>>> *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
>>
>> tobias.kaymak@ricardo.ch
>> www.ricardo.ch
>> Theilerstrasse 1a, 6300 Zug
>>
>

-- 

Tobias Kaymak
Data Engineer
Data Intelligence

tobias.kaymak@ricardo.ch
www.ricardo.ch
Theilerstrasse 1a, 6300 Zug

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

Posted by Yang Wang <da...@gmail.com>.
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 <to...@ricardo.ch> 于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 <ra...@gmail.com> 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 <to...@ricardo.ch>
>> 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: image.png]
>>>
>>> Best,
>>> Tobias
>>>
>> --
>>
>>
>>
>>
>> *■*R a s i k
>> rasik.sheth@gmail.com
>>
>> *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
>
> tobias.kaymak@ricardo.ch
> www.ricardo.ch
> Theilerstrasse 1a, 6300 Zug
>

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

Posted by "Kaymak, Tobias" <to...@ricardo.ch>.
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 <ra...@gmail.com> 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 <to...@ricardo.ch>
> 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: image.png]
>>
>> Best,
>> Tobias
>>
> --
>
>
>
>
> *■*R a s i k
> rasik.sheth@gmail.com
>
> *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

tobias.kaymak@ricardo.ch
www.ricardo.ch
Theilerstrasse 1a, 6300 Zug

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

Posted by Rasik Sheth <ra...@gmail.com>.
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 <to...@ricardo.ch>
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: image.png]
>
> Best,
> Tobias
>
-- 




*■*R a s i k
rasik.sheth@gmail.com

*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*