[
https://issues.apache.org/jira/browse/HBASE-29045?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Pankaj Kumar resolved HBASE-29045.
----------------------------------
Fix Version/s: 2.7.0
3.0.0-beta-2
2.6.3
2.5.12
Resolution: Fixed
Pushed to branch-2.5+.
Thanks [~chaijunjie] for the contribution and [~nihaljain.cs] & [~mnpoonia]
for reviwing the PR.
> Support new async-profiler > 2.9 version
> ----------------------------------------
>
> Key: HBASE-29045
> URL: https://issues.apache.org/jira/browse/HBASE-29045
> Project: HBase
> Issue Type: Improvement
> Components: profiler
> Affects Versions: 2.6.1
> Reporter: chaijunjie
> Assignee: chaijunjie
> Priority: Major
> Labels: pull-request-available
> Fix For: 2.7.0, 3.0.0-beta-2, 2.6.3, 2.5.12
>
> Attachments: HBASE-29045.patch, async-profiler-2.9-profile-log.jpg,
> async-profiler-2.9-profile.jpg, async-profiler-3.0-profile-log.jpg,
> async-profiler-3.0-profile.jpg
>
>
> Async-profiler has reorganized the package structure, where profiler.sh is
> replaced by <ASYNC_PROFILER_HOME>/bin/asprof
> [https://github.com/async-profiler/async-profiler/issues/724]
> We should adopt the new script in HBase, otherwise following exception will
> be thrown if new async-profiler verison is used.
> {code:java}
> java.lang.IllegalStateException: java.io.IOException: Cannot run program
> "/opt/async-profiler-3.0-linux-x64/profiler.sh": error=2, No such file or
> directory
> at
> org.apache.hadoop.hbase.util.ProcessUtils.runCmdAsync(ProcessUtils.java:66)
> at
> org.apache.hadoop.hbase.http.ProfileServlet.doGet(ProfileServlet.java:241)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:687)
> at javax.servlet.http.HttpServlet.service(HttpServlet.java:790)
> at
> org.apache.hbase.thirdparty.org.eclipse.jetty.servlet.ServletHolder.handle(ServletHolder.java:799)
> at
> org.apache.hbase.thirdparty.org.eclipse.jetty.servlet.ServletHandler$ChainEnd.doFilter(ServletHandler.java:1656)
> {code}
> Also fallback to old script in order to support compatibility.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)