-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
[Enhancement] Bump FE/BE's hadoop to 3.4.0 #45312
Conversation
hiveResourceUri.setResourceType(ResourceType.valueOf(catalogResourceUri.getResourceType())); | ||
hiveResourceUri.setUri(catalogResourceUri.uri()); | ||
if (catalogResourceUri.resourceType() != null) { | ||
hiveResourceUri.setResourceType(ResourceType.valueOf(catalogResourceUri.resourceType().toString())); | ||
} | ||
hiveResourceUriList.add(hiveResourceUri); | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can I help you today?
} | ||
catalogResourceUriList.add(catalogResourceUri); | ||
catalogResourceUriList.add(catalogResourceUri.build()); | ||
} | ||
return catalogResourceUriList; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can I assist you today?
@@ -1627,7 +1627,7 @@ public void renamePartitionInCatalog(String databaseName, String tableName, List | |||
try { | |||
PartitionInput partitionInput = GlueInputConverter.convertToPartitionInput(newPartition); | |||
glueMetastore.updatePartition(databaseName, tableName, partitionValues, partitionInput); | |||
} catch (AmazonServiceException e) { | |||
} catch (SdkException e) { | |||
throw CatalogToHiveConverter.wrapInHiveException(e); | |||
} | |||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How can I help you today?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it seems to me that you just change the AWS client dependency, can you rename this PR's title?
<dependency> | ||
<groupId>software.amazon.awssdk</groupId> | ||
<artifactId>bundle</artifactId> | ||
<version>${awsv2.version}</version> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
exclude unused dependency
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
hard do it, hadoop-aws will include bundle
automatically.
aws SDK v2 is introduced by hadoop-aws : 3.4.0 Because we upgraded Hadoop, we also upgraded aws. |
bf6a82e
to
06b5f1d
Compare
c63a45e
to
a5e4fc2
Compare
9009ab0
to
2214e37
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
good job!
build.sh
Outdated
@@ -519,6 +519,7 @@ if [ ${BUILD_BE} -eq 1 ]; then | |||
cp -r -p ${STARROCKS_HOME}/java-extensions/iceberg-metadata-reader/target/iceberg-reader-lib ${STARROCKS_OUTPUT}/be/lib/ | |||
cp -r -p ${STARROCKS_HOME}/java-extensions/iceberg-metadata-reader/target/starrocks-iceberg-metadata-reader.jar ${STARROCKS_OUTPUT}/be/lib/jni-packages | |||
cp -r -p ${STARROCKS_HOME}/java-extensions/iceberg-metadata-reader/target/starrocks-iceberg-metadata-reader.jar ${STARROCKS_OUTPUT}/be/lib/iceberg-reader-lib | |||
cp -r -p ${STARROCKS_HOME}/java-extensions/jni-runtime/target/jni-runtime-lib ${STARROCKS_OUTPUT}/be/lib/ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we have existed jni-package. I think it more appropriate to name it common-runtime-lib
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
java-extensions/jni-runtime/pom.xml
Outdated
<version>1.0-SNAPSHOT</version> | ||
</parent> | ||
|
||
<artifactId>jni-runtime</artifactId> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
common-runtime
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fixed
// The UrlConnectionHttpClient is introduced by #16602, and it causes the exception. | ||
// So we set the default HTTP client to UrlConnectionHttpClient. | ||
// TODO: remove this after we remove ApacheHttpClient | ||
private static void setAWSHttpClient() { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove it in the iceberg_metadata_reader
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed
2214e37
to
a46fbf3
Compare
Signed-off-by: Smith Cruise <chendingchao1@126.com>
ed65cc9
to
0c8c2f0
Compare
|
[FE Incremental Coverage Report]❌ fail : 112 / 496 (22.58%) file detail
|
[BE Incremental Coverage Report]✅ pass : 0 / 0 (0%) |
@mergify backport branch-3.3 |
✅ Backports have been created
|
Why I'm doing: For the CVE problem, we need to upgrade Hadoop SDK from 3.3.6 -> 3.4.0 It will introduce aws java SDK v2, so we can delete SDK v1. Signed-off-by: Smith Cruise <chendingchao1@126.com> (cherry picked from commit 0fcf3d7)
Why I'm doing: For the CVE problem, we need to upgrade Hadoop SDK from 3.3.6 -> 3.4.0 It will introduce aws java SDK v2, so we can delete SDK v1. Signed-off-by: Smith Cruise <chendingchao1@126.com>
Why I'm doing:
For the CVE problem, we need to upgrade Hadoop SDK from 3.3.6 -> 3.4.0
It will introduce aws java SDK v2, so we can delete SDK v1.
What I'm doing:
Do it.
What type of PR is this:
Does this PR entail a change in behavior?
If yes, please specify the type of change:
Checklist:
Bugfix cherry-pick branch check: