Re: accessing zeppelin via knox returns empty page

2018-06-11 Thread Lian Jiang
Thanks guys. Your suggestions worked!

On Mon, Jun 11, 2018 at 7:45 PM, Sandeep Moré  wrote:

> Also, can you try adding forward slash to your url, i.e.
> https://test-namenode.subnet1.hadoop.oraclevcn.com:
> 8443/gateway/ui/zeppelin/
>
> Best,
> Sandeep
>
>
> On Mon, Jun 11, 2018 at 9:32 PM larry mccay  wrote:
>
>> Hi Lian -
>>
>> If the same response is coming back from curl going both direct and
>> through Knox then it seems that Knox proxying is working properly - at
>> least until that point.
>>
>> Have you looked at the javascript console in the browser to see whether
>> there are any errors?
>> In order for Zeppelin to work you will also need to proxy the websocket
>> connections - so make sure that you follow the docs [1] completely.
>>
>> Dev tools and the javascript console should provide you with some more
>> details hopefully.
>>
>> thanks,
>>
>> --larry
>>
>> 1. http://knox.apache.org/books/knox-1-0-0/user-guide.html#Zeppelin+UI
>>
>> On Mon, Jun 11, 2018 at 7:56 PM, Lian Jiang 
>> wrote:
>>
>>> Hi,
>>>
>>> I am using HDP2.6, knox, ranger, ldap. I can access zeppelin directly
>>> using admin/admin as username/password. However, accessing zepplin via knox
>>> gets 200 status code but empty page.
>>>
>>> Using curl, I found the responses (at the end) are the same for:
>>>
>>> without knox:
>>> curl -ik -H 'Cache-Control: no-cache' -u admin:"password"
>>> http://test-namenode.subnet1.hadoop.oraclevcn.com:9995
>>>
>>> with knox:
>>> curl -ik -H 'Cache-Control: no-cache' -u admin:"password"
>>> https://test-namenode.subnet1.hadoop.oraclevcn.com:8443/
>>> gateway/ui/zeppelin
>>>
>>> Any idea why the browser does not show the login page? Appreciate any
>>> help!
>>>
>>>
>>>
>>> Response:
>>>
>>> HTTP/1.1 200 OK
>>> Date: Mon, 11 Jun 2018 23:51:00 GMT
>>> Date: Monday, June 11, 2018 11:51:00 PM GMT
>>> Access-Control-Allow-Credentials: true
>>> Access-Control-Allow-Headers: authorization,Content-Type
>>> Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, HEAD, DELETE
>>> X-FRAME-OPTIONS: SAMEORIGIN
>>> X-XSS-Protection: 1
>>> Accept-Ranges: bytes
>>> Content-Type: text/html
>>> Last-Modified: Thu, 04 Jan 2018 10:59:02 GMT
>>> Server: Jetty(9.2.15.v20160210)
>>> Content-Length: 3783
>>>
>>>>> http-equiv="X-UA-Compatible" content="IE=edge"> 
>>>   >> http-equiv="cache-control" content="max-age=0"> >> http-equiv="cache-control" content="no-cache"> >> http-equiv="cache-control" content="no-store"> >> content="0">   >> name="description" content=""> >> content="width=device-width">  div.ace_editor.ace_autocomplete
>>> .ace_marker-layer .ace_active-line { z-index: -1 !important; }  >> rel="stylesheet" 
>>> href="/gateway/ui/zeppelin/styles/vendor.ead2f1215177b914.css">
>>>  >> ng-href="/gateway/ui/zeppelin/assets/styles/looknfeel/{{looknfeel}}.css">
>>> >> href="/gateway/ui/zeppelin/assets/styles/printMode.css">
>>>   
>>>   >> src="'components/modal-shortcut/modal-shortcut.html?v=1515063488639'">
>>>  >> id="note-modal-container" ng-include src="'components/noteName-
>>> create/note-name-dialog.html?v=1515063488639'">  >> ng-controller="NoteImportCtrl as noteimportctrl"> >> id="note-import-container" ng-include src="'components/noteName-
>>> import/note-import-dialog.html?v=1515063488639'">  >> ng-controller="LoginCtrl as noteimportctrl"> >> ng-include src="'components/login/login.html?v=1515063488639'">
>>>   >> src="'components/rename/rename.html?v=1515063488639'"> 
>>>  var config = {
>>> extensions: ["tex2jax.js"],
>>> jax: ["input/TeX", "output/HTML-CSS"],
>>> tex2jax: {
>>>   inlineMath: [ ["\\(","\\)"] ],
>>>   displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
>>>   processEscapes: true
>>> },
>>> "HTML-CSS": { availableFonts: ["TeX"] },
>>> messageStyle: "none"
>>>   }
>>>   // add root only if it's not dev mode
>>>   if (Number(location.port) !== 9000) {
>>> config.root = '.';
>>>   }
>>>   MathJax.Hub.Config(config); >> src="/gateway/ui/zeppelin/scripts/vendor.b8e51cdeeccd208d.js">
>>> 
>>>
>>>
>>>
>>


Re: accessing zeppelin via knox returns empty page

2018-06-11 Thread Sandeep Moré
Also, can you try adding forward slash to your url, i.e.
https://test-namenode.subnet1.hadoop.oraclevcn.com:8443/gateway/ui/zeppelin/

Best,
Sandeep

On Mon, Jun 11, 2018 at 9:32 PM larry mccay  wrote:

> Hi Lian -
>
> If the same response is coming back from curl going both direct and
> through Knox then it seems that Knox proxying is working properly - at
> least until that point.
>
> Have you looked at the javascript console in the browser to see whether
> there are any errors?
> In order for Zeppelin to work you will also need to proxy the websocket
> connections - so make sure that you follow the docs [1] completely.
>
> Dev tools and the javascript console should provide you with some more
> details hopefully.
>
> thanks,
>
> --larry
>
> 1. http://knox.apache.org/books/knox-1-0-0/user-guide.html#Zeppelin+UI
>
> On Mon, Jun 11, 2018 at 7:56 PM, Lian Jiang  wrote:
>
>> Hi,
>>
>> I am using HDP2.6, knox, ranger, ldap. I can access zeppelin directly
>> using admin/admin as username/password. However, accessing zepplin via knox
>> gets 200 status code but empty page.
>>
>> Using curl, I found the responses (at the end) are the same for:
>>
>> without knox:
>> curl -ik -H 'Cache-Control: no-cache' -u admin:"password"
>> http://test-namenode.subnet1.hadoop.oraclevcn.com:9995
>>
>> with knox:
>> curl -ik -H 'Cache-Control: no-cache' -u admin:"password"
>> https://test-namenode.subnet1.hadoop.oraclevcn.com:8443/gateway/ui/zeppelin
>>
>> Any idea why the browser does not show the login page? Appreciate any
>> help!
>>
>>
>>
>> Response:
>>
>> HTTP/1.1 200 OK
>> Date: Mon, 11 Jun 2018 23:51:00 GMT
>> Date: Monday, June 11, 2018 11:51:00 PM GMT
>> Access-Control-Allow-Credentials: true
>> Access-Control-Allow-Headers: authorization,Content-Type
>> Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, HEAD, DELETE
>> X-FRAME-OPTIONS: SAMEORIGIN
>> X-XSS-Protection: 1
>> Accept-Ranges: bytes
>> Content-Type: text/html
>> Last-Modified: Thu, 04 Jan 2018 10:59:02 GMT
>> Server: Jetty(9.2.15.v20160210)
>> Content-Length: 3783
>>
>>> http-equiv="X-UA-Compatible" content="IE=edge"> 
>>   > http-equiv="cache-control" content="max-age=0"> > http-equiv="cache-control" content="no-cache"> > http-equiv="cache-control" content="no-store"> > content="0">   > name="description" content=""> > content="width=device-width">  div.ace_editor.ace_autocomplete
>> .ace_marker-layer .ace_active-line { z-index: -1 !important; }  > rel="stylesheet"
>> href="/gateway/ui/zeppelin/styles/vendor.ead2f1215177b914.css"> > rel="stylesheet"
>> href="/gateway/ui/zeppelin/styles/main.5e840e18559d1996.css"> > rel="stylesheet"
>> ng-href="/gateway/ui/zeppelin/assets/styles/looknfeel/{{looknfeel}}.css">
>> > href="/gateway/ui/zeppelin/assets/styles/printMode.css">  > ng-class="{'bodyAsIframe': asIframe}">   > src="'components/navbar/navbar.html?v=1515063488639'">   > ng-view>   > src="'components/modal-shortcut/modal-shortcut.html?v=1515063488639'">
>>  > id="note-modal-container" ng-include
>> src="'components/noteName-create/note-name-dialog.html?v=1515063488639'">
>>   > id="note-import-container" ng-include
>> src="'components/noteName-import/note-import-dialog.html?v=1515063488639'">
>>   > id="login-container" ng-include
>> src="'components/login/login.html?v=1515063488639'">  > ng-controller="RenameCtrl"> > src="'components/rename/rename.html?v=1515063488639'">   var config = {
>> extensions: ["tex2jax.js"],
>> jax: ["input/TeX", "output/HTML-CSS"],
>> tex2jax: {
>>   inlineMath: [ ["\\(","\\)"] ],
>>   displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
>>   processEscapes: true
>> },
>> "HTML-CSS": { availableFonts: ["TeX"] },
>> messageStyle: "none"
>>   }
>>   // add root only if it's not dev mode
>>   if (Number(location.port) !== 9000) {
>> config.root = '.';
>>   }
>>   MathJax.Hub.Config(config); > src="/gateway/ui/zeppelin/scripts/vendor.b8e51cdeeccd208d.js">
>> > src="/gateway/ui/zeppelin/app.05bbdae750681c30f521.js">
>>
>>
>>
>


accessing zeppelin via knox returns empty page

2018-06-11 Thread Lian Jiang
Hi,

I am using HDP2.6, knox, ranger, ldap. I can access zeppelin directly using
admin/admin as username/password. However, accessing zepplin via knox gets
200 status code but empty page.

Using curl, I found the responses (at the end) are the same for:

without knox:
curl -ik -H 'Cache-Control: no-cache' -u admin:"password"
http://test-namenode.subnet1.hadoop.oraclevcn.com:9995

with knox:
curl -ik -H 'Cache-Control: no-cache' -u admin:"password"
https://test-namenode.subnet1.hadoop.oraclevcn.com:8443/gateway/ui/zeppelin

Any idea why the browser does not show the login page? Appreciate any help!



Response:

HTTP/1.1 200 OK
Date: Mon, 11 Jun 2018 23:51:00 GMT
Date: Monday, June 11, 2018 11:51:00 PM GMT
Access-Control-Allow-Credentials: true
Access-Control-Allow-Headers: authorization,Content-Type
Access-Control-Allow-Methods: POST, GET, OPTIONS, PUT, HEAD, DELETE
X-FRAME-OPTIONS: SAMEORIGIN
X-XSS-Protection: 1
Accept-Ranges: bytes
Content-Type: text/html
Last-Modified: Thu, 04 Jan 2018 10:59:02 GMT
Server: Jetty(9.2.15.v20160210)
Content-Length: 3783


   div.ace_editor.ace_autocomplete
.ace_marker-layer .ace_active-line { z-index: -1 !important; }
   
 
  
var config = {
extensions: ["tex2jax.js"],
jax: ["input/TeX", "output/HTML-CSS"],
tex2jax: {
  inlineMath: [ ["\\(","\\)"] ],
  displayMath: [ ['$$','$$'], ["\\[","\\]"] ],
  processEscapes: true
},
"HTML-CSS": { availableFonts: ["TeX"] },
messageStyle: "none"
  }
  // add root only if it's not dev mode
  if (Number(location.port) !== 9000) {
config.root = '.';
  }
  MathJax.Hub.Config(config);