awslabs / amazon-emr-user-role-mapper

Application to securely map users on a multi tenant Amazon EMR cluster to different IAM Roles and then assume the mapped Role.
Apache License 2.0
19 stars 20 forks source link

URM Build steps no more working properly (Missing com.amazonaws.glue:aws-glue-datacatalog-client-common:jar) #52

Open ssandona opened 2 years ago

ssandona commented 2 years ago

On the repo README.md the "Build" highlighted steps are no more working after this commit https://github.com/awslabs/amazon-emr-user-role-mapper/commit/0a524baa0a20fc25ae246bab96047b7c4f16318d.

The following command

mvn clean install -DskipTests

fails with the following:

[INFO] ------------------------------------------------------------------------
[INFO] Reactor Summary for Amazon EMR User Role Mapper 1.2.0-SNAPSHOT:
[INFO] 
[INFO] Amazon EMR User Role Mapper ........................ SUCCESS [  0.211 s]
[INFO] Amazon EMR User Role Mapper Interface .............. SUCCESS [  0.910 s]
[INFO] Amazon EMR User Role Mapper Application ............ SUCCESS [ 10.487 s]
[INFO] Amazon EMR User Role Mapper URM Credentials Provider SUCCESS [02:16 min]
[INFO] Amazon EMR User Role Mapper S3 Storage Based Authorizer for Hive FAILURE [02:35 min]
[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time:  05:03 min
[INFO] Finished at: 2022-01-03T12:22:47+01:00
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal on project s3storagebasedauthorizationmanager: Could not resolve dependencies for project com.amazonaws.emr:s3storagebasedauthorizationmanager:jar:1.2.0-SNAPSHOT: Could not find artifact com.amazonaws.glue:aws-glue-datacatalog-client-common:jar:1.10.0-SNAPSHOT -> [Help 1]
[ERROR] 
[ERROR] To see the full stack trace of the errors, re-run Maven with the -e switch.
[ERROR] Re-run Maven using the -X switch to enable full debug logging.
[ERROR] 
[ERROR] For more information about the errors and possible solutions, please read the following articles:
[ERROR] [Help 1] http://cwiki.apache.org/confluence/display/MAVEN/DependencyResolutionException
[ERROR] 
[ERROR] After correcting the problems, you can resume the build with the command
[ERROR]   mvn <args> -rf :s3storagebasedauthorizationmanager

In specific:

Could not find artifact com.amazonaws.glue:aws-glue-datacatalog-client-common:jar:1.10.0-SNAPSHOT

jalpan-randeri commented 2 years ago

Since this change introduce new dependancy on aws-glue-datacatalog-client. We need to build this dependency using following instructions. https://github.com/awslabs/aws-glue-data-catalog-client-for-apache-hive-metastore#building-the-hive-client