Fwd: knox rewrite false positives

2017-10-26 Thread Wei Han
We have seen some false positives with the current rewrite rules. For example the following rule in oozieui will rewrite viewfs://ns-default/foo/bar/oozie/myfile.jar to http://oozie:11000/oozie/ myfile.jar The reason is the ** before 'oozie' in the pattern can match any number of paths, how

Re: knox rewrite false positives

2017-10-27 Thread Wei Han
More wrote: > Hello Wei Han, > > Do you send 'viewfs://' as a request (like http) ? > > Also, there could be a chance that the protocol could be http or https, so > I think it would be better to handle both in the rewrite rules, for e.g. > > > http://*:*/

Re: knox rewrite false positives

2017-11-03 Thread Wei Han
. And > then create a ticket for other UI's. > > > > On Friday, October 27, 2017, 9:58:49 AM PDT, Wei Han > wrote: > > > viewfs is not the original request, I guess it's part of a html body. > > Yes this can definitely work, I can provide a patch for oozie.

conflicting outbound rewrite rules

2017-12-13 Thread Wei Han
I found out that knox didn't rewrite /static/jquery-1.10.2.min.js in HDFS home page(url: https://knox_host:port/gateway/test/hdfs/dfshealth.html), which was causing some UI issues. After some digging, I found out the following two rules, which can both match the string (/static/jquery-1.10.2.min.js

Re: conflicting outbound rewrite rules

2017-12-13 Thread Wei Han
y commit it as is - as long as sparkhistory ui still > works. > > thanks again! > > --larry > > On Wed, Dec 13, 2017 at 2:55 PM, Wei Han wrote: > >> I found out that knox didn't rewrite /static/jquery-1.10.2.min.js in >> HDFS home page(url: https://knox_ho

Re: conflicting outbound rewrite rules

2017-12-27 Thread Wei Han
Hi Larry - I haven't heard from you about this yet. Could you take a look when you get a chance? On Wed, Dec 13, 2017 at 3:41 PM, Wei Han wrote: > Hi Larry - Thanks for your response. Actually hdfsui and sparkhistoryui > are two different services. My understanding is a rewrite rul

Re: conflicting outbound rewrite rules

2017-12-29 Thread Wei Han
owe you any other answer here? > > thanks, > > --larry > > On Wed, Dec 27, 2017 at 2:23 PM, Wei Han wrote: > >> Hi Larry - I haven't heard from you about this yet. Could you take a look >> when you get a chance? >> >> On Wed, Dec 13, 2017

turn off debug logging from org.apache.http.wire

2018-04-13 Thread Wei Han
Hi Knox experts - Has anyone successfully turn off the debug loggings from org.apache.http.wire, like below? 06:52:49.751 [qtp1473205473-61] DEBUG org.apache.http.wire - http-outgoing-2 << "[0x0][0x0 I've tried almost everything in this stackoverflow post

Re: turn off debug logging from org.apache.http.wire

2018-04-14 Thread Wei Han
ger.org.apache.http.headers=DEBUG > #log4j.logger.org.apache.http.wire=DEBUG > > Note that all of the DEBUG settings are commented out. > Also note that the rootLogger is set to ERROR and not DEBUG. > > Can you compare and share with us what yours are set to? > > thanks, >

Re: turn off debug logging from org.apache.http.wire

2018-04-15 Thread Wei Han
way-log4j.properties from the original > install and remove any other log4j config that you may have elsewhere. > > On Sun, Apr 15, 2018 at 1:58 AM, Wei Han wrote: > >> Hi Larry - Thanks a lot for getting back to me. >> >> Yes I made sure all DEBUG level is turned of