java - testing hbase with jvmti agent -
i want test hbase using test cases. downloaded project link , followed instruction test project, running command line
mvn test
there no problem here. want run test cases jvmti agent
. agent works fine, tried on several java files. normally, call agent test java file using
java -agentpath:/path/to/agent/agent.so javaprogram
in case, project use maven , not @ pom files. tried use
alias java="java -agentpath:/path/to/agent/agent.so "
however did not wok. how can test hbase agent?
you can pass jvm arguments maven using maven_opts
environment variable:
export maven_opts=-agentpath:/path/to/agent.so
a more generic solution use java_tool_options
environment variable.
on linux: export java_tool_options=-agentpath:/path/to/agent.so
, run mvn
Comments
Post a Comment