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

Popular posts from this blog

android - Get AccessToken using signpost OAuth without opening a browser (Two legged Oauth) -

org.mockito.exceptions.misusing.InvalidUseOfMatchersException: mockito -

google shop client API returns 400 bad request error while adding an item -