Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CDAP-8036 add a fat coprocessor jar to hbase compat packages #7729

Merged
merged 2 commits into from
Feb 1, 2017

Conversation

albertshau
Copy link
Contributor

Added a fat jar containing all the CDAP coprocessors to every
hbase compat package in a new 'coprocessor' directory. It is
meant to be used in CDAP setups where the replication status
tool is required, or setups where 'master.manage.hbase.coprocessors'
is set to false in order to enable rolling hbase upgrades.

@albertshau albertshau force-pushed the feature/CDAP-8036-coprocessor-packages branch 2 times, most recently from 86d39d7 to da1a8e1 Compare January 30, 2017 22:43
Added a fat jar containing all the CDAP coprocessors to every
hbase compat package in a new 'coprocessor' directory. It is
meant to be used in CDAP setups where the replication status
tool is required, or setups where 'master.manage.hbase.coprocessors'
is set to false in order to enable rolling hbase upgrades.
@albertshau albertshau force-pushed the feature/CDAP-8036-coprocessor-packages branch from da1a8e1 to fccd8e8 Compare January 31, 2017 20:08
@sagarkapare
Copy link
Contributor

I tried running the command from cdap directory
MAVEN_OPTS="-Xmx1024m -XX:MaxPermSize=128m" mvn clean package -DskipTests -P coprocessors

Seems like there are 2 issues -

  1. Empty opt/cdap/${package.name}/coprocessor directory gets created in all modules.
  2. fat jar is created in the hbase-compat modules, but the path has ${package.name} in it. seems like variable is not getting resolved.

@albertshau
Copy link
Contributor Author

hm good points. I tested this with an actual rpm, guess something in another profile sets package.name. As for the coprocessor directory in all other modules, was trying to avoid copying this logic in all compat poms, but may have to do that to fix it.

The common profile was causing too many issues, so just moved
the two additional executions into every compat module's dist
profile. This will also make it so that existing builds don't
need to change.
@sagarkapare
Copy link
Contributor

LGTM 👍

@albertshau albertshau merged commit 1590146 into develop Feb 1, 2017
@albertshau albertshau deleted the feature/CDAP-8036-coprocessor-packages branch February 1, 2017 23:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants