You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "hingu8103 (via GitHub)" <gi...@apache.org> on 2025/02/11 06:25:48 UTC

[PR] KNOX-3095:Added HBase UI proxying for Startup progress [knox]

hingu8103 opened a new pull request, #989:
URL: https://github.com/apache/knox/pull/989

   JIRA-3095 : Added Hbase UI proxying for Startup progress
   
   ## What changes were proposed in this pull request?
   
   Added rewrite rule for "Startup Progress" on HBase UI.
   
   ## How was this patch tested?
   
   Copied the rewrite.xml file to a cluster, restarted Knox, and verified the URL is redirecting correctly.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@knox.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KNOX-3095:Added HBase UI proxying for Startup progress [knox]

Posted by "pzampino (via GitHub)" <gi...@apache.org>.
pzampino commented on PR #989:
URL: https://github.com/apache/knox/pull/989#issuecomment-2666190910

   @tr0k Thank you for this contribution.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@knox.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KNOX-3095:Added HBase UI proxying for Startup progress [knox]

Posted by "vinayakphegde (via GitHub)" <gi...@apache.org>.
vinayakphegde commented on PR #989:
URL: https://github.com/apache/knox/pull/989#issuecomment-2666198162

   Thanks Everyone!


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@knox.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KNOX-3095:Added HBase UI proxying for Startup progress [knox]

Posted by "tr0k (via GitHub)" <gi...@apache.org>.
tr0k commented on PR #989:
URL: https://github.com/apache/knox/pull/989#issuecomment-2651393538

   Hey @smolnar82 indeed it has been added later to 2.4.17 and 2.5.4
   https://issues.apache.org/jira/browse/HBASE-21521
   I will propose a fix for this tmrw. Thanks for spotting.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@knox.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KNOX-3095:Added HBase UI proxying for Startup progress [knox]

Posted by "vinayakphegde (via GitHub)" <gi...@apache.org>.
vinayakphegde commented on PR #989:
URL: https://github.com/apache/knox/pull/989#issuecomment-2664839633

   > I did notice that the rewrite rule for 2.5.10 differs from the 2.1.0 addition in this PR. Is that intentional?
   
   Hmm, correct. `?host={$inboundurl[host]}?port={$inboundurl[port]}?{**}` is additional in the rewrite template here.
   
   In general, we have this same difference between 2.1.0 and 2.5.10 UI rules. for example
   2.1.0: [hbaseui/2.1.0/rewrite.xml#L129-#L146](https://github.com/apache/knox/blob/master/gateway-service-definitions/src/main/resources/services/hbaseui/2.1.0/rewrite.xml#L129-#L146)
   2.5.10: [hbaseui/2.5.10/rewrite.xml#L152-#L178](https://github.com/apache/knox/blob/master/gateway-service-definitions/src/main/resources/services/hbaseui/2.5.10/rewrite.xml#L152-#L178)
   
   Are these parameters no longer needed in the latest versions? If so, what was the reason for this change?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@knox.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KNOX-3095:Added HBase UI proxying for Startup progress [knox]

Posted by "pzampino (via GitHub)" <gi...@apache.org>.
pzampino commented on PR #989:
URL: https://github.com/apache/knox/pull/989#issuecomment-2656881777

   > > Thanks, @tr0k, for getting back so quickly.
   > > @hingu8103 - based on the above, the only option you have is to create a separate service definition for 2.5.4 and add your change there. Or, alternatively, you may want to upgrade Hbase to at least 2.5.10. In any case, you may also want to ensure in your topology that you are using the appropriate service definition by applying its version (see sample [here](https://knox.apache.org/books/knox-2-1-0/dev-guide.html#service.xml)).
   > 
   > Hi folks, we're unclear on how Knox handles HBase versions. Does this mean it will use the 2.1.0 HBase UI service definition until HBase 2.5.9, and from HBase 2.5.10 onward, it will use the new 2.5.10 definitions?
   
   Knox doesn't know anything about the HBase version being proxied outside of the service definition. Knox will use the most recent version unless an explicit version is specified in the topology.
   
   So, by default, Knox will apply the 2.5.10 service definition. If the startupProgress rule also applies to previous HBase versions, then it makes sense to add it to the older service definition version(s). As previously noted, Knox topologies for which you wanted to use the older service definition(s) would require that the service definition version be explicitly configured therein.
   
   I did notice that the rewrite rule for 2.5.10 differs from the 2.1.0 addition in this PR. Is that intentional?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@knox.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KNOX-3095:Added HBase UI proxying for Startup progress [knox]

Posted by "tr0k (via GitHub)" <gi...@apache.org>.
tr0k commented on PR #989:
URL: https://github.com/apache/knox/pull/989#issuecomment-2666139009

   Hi @vinayakphegde I made it simpler since I don't need to explicitly pass these two parameters. Let me know if it's causing any issues. I have just tested it again and with or without it it works the same for me in 2.5.10.
   I noticed however an orthogonal issue that I may open sth later for. In HA when Active becomes backup Knox redirects to the backup one, then one needs to click the URL of the active one to be redirected to the correct node however most of the subpages don't work. Let me know if you face this problem in 2.1.0 or other versions too. Cheers


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@knox.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KNOX-3095:Added HBase UI proxying for Startup progress [knox]

Posted by "smolnar82 (via GitHub)" <gi...@apache.org>.
smolnar82 commented on PR #989:
URL: https://github.com/apache/knox/pull/989#issuecomment-2651880043

   Thanks, @tr0k, for getting back so quickly.
   
   @hingu8103 - based on the above, the only option you have is to create a separate service definition for 2.5.4 and add your change there. Or, alternatively, you may want to upgrade Hbase to at least 2.5.10. In any case, you may also want to ensure in your topology that you are using the appropriate service definition by applying its version (see sample [here](https://knox.apache.org/books/knox-2-1-0/dev-guide.html#service.xml)).


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@knox.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KNOX-3095:Added HBase UI proxying for Startup progress [knox]

Posted by "pzampino (via GitHub)" <gi...@apache.org>.
pzampino commented on PR #989:
URL: https://github.com/apache/knox/pull/989#issuecomment-2665813450

   > > I did notice that the rewrite rule for 2.5.10 differs from the 2.1.0 addition in this PR. Is that intentional?
   > 
   > Hmm, correct. `?host={$inboundurl[host]}?port={$inboundurl[port]}?{**}` is additional in the rewrite template here.
   > 
   > In general, we have this same difference between 2.1.0 and 2.5.10 UI rules. for example 2.1.0: [hbaseui/2.1.0/rewrite.xml#L129-#L146](https://github.com/apache/knox/blob/master/gateway-service-definitions/src/main/resources/services/hbaseui/2.1.0/rewrite.xml#L129-#L146) 2.5.10: [hbaseui/2.5.10/rewrite.xml#L152-#L178](https://github.com/apache/knox/blob/master/gateway-service-definitions/src/main/resources/services/hbaseui/2.5.10/rewrite.xml#L152-#L178)
   > 
   > Are these parameters no longer needed in the latest versions? If so, what was the reason for this change?
   
   That is a component-specific question. Knox itself does not dictate the patterns for these rules.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@knox.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KNOX-3095:Added HBase UI proxying for Startup progress [knox]

Posted by "vinayakphegde (via GitHub)" <gi...@apache.org>.
vinayakphegde commented on PR #989:
URL: https://github.com/apache/knox/pull/989#issuecomment-2656108036

   > Thanks, @tr0k, for getting back so quickly.
   > 
   > @hingu8103 - based on the above, the only option you have is to create a separate service definition for 2.5.4 and add your change there. Or, alternatively, you may want to upgrade Hbase to at least 2.5.10. In any case, you may also want to ensure in your topology that you are using the appropriate service definition by applying its version (see sample [here](https://knox.apache.org/books/knox-2-1-0/dev-guide.html#service.xml)).
   
   Hi folks, we're unclear on how Knox handles HBase versions. Does this mean it will use the 2.1.0 HBase UI service definition until HBase 2.5.9, and from HBase 2.5.10 onward, it will use the new 2.5.10 definitions?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@knox.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KNOX-3095:Added HBase UI proxying for Startup progress [knox]

Posted by "pzampino (via GitHub)" <gi...@apache.org>.
pzampino merged PR #989:
URL: https://github.com/apache/knox/pull/989


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@knox.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KNOX-3095:Added HBase UI proxying for Startup progress [knox]

Posted by "moresandeep (via GitHub)" <gi...@apache.org>.
moresandeep commented on PR #989:
URL: https://github.com/apache/knox/pull/989#issuecomment-2665943773

   Thanks for the patch @tr0k and @vinayakphegde! the patch looks good, if we can reach to a conclusion on weather to move them to a separate version folder or in the existing version we can commit it. 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@knox.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KNOX-3095:Added HBase UI proxying for Startup progress [knox]

Posted by "smolnar82 (via GitHub)" <gi...@apache.org>.
smolnar82 commented on PR #989:
URL: https://github.com/apache/knox/pull/989#issuecomment-2665886696

   @tr0k - Since you added the new 2.5.10 service definition version, I think it's best that you answer the above question.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@knox.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [PR] KNOX-3095:Added HBase UI proxying for Startup progress [knox]

Posted by "smolnar82 (via GitHub)" <gi...@apache.org>.
smolnar82 commented on PR #989:
URL: https://github.com/apache/knox/pull/989#issuecomment-2650883349

   A more recent version of the HBase UI service definition is 2.5.10. Why is your change only applied in 2.1.0?
   
   Cc. @stoty @tr0k 


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscribe@knox.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org