You should be able to just update the rewrite.xml file and the touch the topology file that has the reference to to the HDFSUI service. Knox picks up topology file changes dynamically. No need to restart the server.
On Thu, Oct 27, 2016 at 7:53 PM, Mohammad Islam <[email protected]> wrote: > I agree. Wandering if we could put a default rule of just pre-appending > base path something "{$frontend[url]}/hdfs". > > Btw, what is the quickest of testing the rewrite.xml updates. Do I need to > rebuild the package and install? > Or I can go to the existing gateway installation and modify it " > ./data/services/hdfsui/2.7.0/rewrite.xml" and restart the server. > > Do I need to use "knoxcli.sh redeploy" also? > > > > > On Thursday, October 27, 2016 3:56 PM, larry mccay <[email protected]> > wrote: > > > For proxying resources, Web UIs are much more of a moving target than REST > APIs. > :/ > > On Thu, Oct 27, 2016 at 6:38 PM, Mohammad Islam <[email protected]> > wrote: > > Thanks Larry. > > I'm surprised that after spending 1 hours or so, I came to the same > findings/conclusions :) > > I will follow the process. > > Really appreciate your quick help. > > Regards, > Mohammad > > > > > On Thursday, October 27, 2016 3:16 PM, larry mccay <[email protected]> > wrote: > > > Hi Mohammad - > > This appears to require additional changes to the rewrite rules for the > UIs. > Look in {GATEWAY_HOME}/data/services/ hdfsui/2.7.0/rewrite.xml for the > existing rules. > > If you could file a JIRA for the issue and provide a patch that would be > great to get into the 0.11.0 release. > > thanks! > > --larry > > On Thu, Oct 27, 2016 at 4:45 PM, Mohammad Islam < > [email protected]> wrote: > > Hi All,I can't view the full UI (i.e. Namenode or Yarn UI) in browser. I > can only see a static page -- no dynamic content though. > I found one potential error. In browser, I saw few files download were > getting "404". When I saw it closely the failure downloads has wrong paths. > For example. > 1. Successful: This file has succeeded with 200 : "http://MY_KNOX_HOST:8445/ > gateway/sandbox/hdfs/static/ jquery-1.10.2.min.js > <http://my_knox_host:8445/gateway/sandbox/hdfs/static/jquery-1.10.2.min.js> > " > 2. Failure: This one got 404. http://MY_KNOX_HOST:8445/ > static/jquery.dataTables.min. js > <http://my_knox_host:8445/static/jquery.dataTables.min.js> > If you closely see the failure case, the full path is not > there. /gateway/sandbox/hdfs/ is missing. Btw I can see a few 404s. > Any idea? Or there could be something else? > Regards,Mohammad > > > > > > > > >
