Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into format-renames
Browse files Browse the repository at this point in the history
  • Loading branch information
majin.nathan committed Sep 4, 2024
2 parents 5be4553 + 3b071f9 commit da1161d
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ public ServerTableMeta getTableDetail(AmoroTable<?> amoroTable) {
return serverTableMeta;
}

private String decorateTableFormat(AmoroTable table) {
private String decorateTableFormat(AmoroTable<?> table) {
StringBuilder sb = new StringBuilder();
sb.append(AmsUtil.formatString(table.format().name()));
if (table.format().equals(TableFormat.ICEBERG)) {
Expand Down Expand Up @@ -340,14 +340,15 @@ public List<PartitionFileBaseInfo> getSnapshotDetail(
AmoroTable<?> amoroTable, String snapshotId) {
MixedTable mixedTable = getTable(amoroTable);
List<PartitionFileBaseInfo> result = new ArrayList<>();
long commitId = Long.parseLong(snapshotId);
Snapshot snapshot;
if (mixedTable.isKeyedTable()) {
snapshot = mixedTable.asKeyedTable().changeTable().snapshot(snapshotId);
snapshot = mixedTable.asKeyedTable().changeTable().snapshot(commitId);
if (snapshot == null) {
snapshot = mixedTable.asKeyedTable().baseTable().snapshot(snapshotId);
snapshot = mixedTable.asKeyedTable().baseTable().snapshot(commitId);
}
} else {
snapshot = mixedTable.asUnkeyedTable().snapshot(snapshotId);
snapshot = mixedTable.asUnkeyedTable().snapshot(commitId);
}
if (snapshot == null) {
throw new IllegalArgumentException(
Expand Down
9 changes: 5 additions & 4 deletions dist/src/main/amoro-bin/bin/ams.sh
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,6 @@ JAVA_OPTS="-server -XX:+UseG1GC -XX:MaxGCPauseMillis=200 \
-Xloggc:$AMORO_LOG_DIR/gc.log -XX:+PrintGCDateStamps -XX:+IgnoreUnrecognizedVMOptions -XX:+UseGCLogFileRotation -XX:NumberOfGCLogFiles=10 -XX:GCLogFileSize=10M \
-Xms${JVM_XMS_CONFIG}m -Xmx${JVM_XMX_CONFIG}m \
-verbose:gc -XX:+PrintGCDetails \
-Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.authenticate=false \
--add-opens=java.base/java.lang=ALL-UNNAMED \
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED \
--add-opens=java.base/java.lang.reflect=ALL-UNNAMED \
Expand All @@ -47,7 +44,11 @@ JAVA_OPTS="-server -XX:+UseG1GC -XX:MaxGCPauseMillis=200 \
"

if [ -n "$JMX_REMOTE_PORT_CONFIG" ];then
JAVA_OPTS="${JAVA_OPTS} -Dcom.sun.management.jmxremote.port=${JMX_REMOTE_PORT_CONFIG} "
JAVA_OPTS="${JAVA_OPTS} -Dcom.sun.management.jmxremote.port=${JMX_REMOTE_PORT_CONFIG} \
-Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.ssl=false \
-Dcom.sun.management.jmxremote.authenticate=false \
"
fi

if [ ! -z "$JVM_EXTRA_CONFIG" ];then
Expand Down
2 changes: 1 addition & 1 deletion docs/admin-guides/managing-optimizers.md
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ The supported parameters include:
### Kubernetes container

Kubernetes container is a way to start Optimizer On K8s with standalone Optimizer.
To use flink container, you need to add a new container configuration.
To use Kubernetes container, you need to add a new container configuration.
with container-impl as `org.apache.amoro.server.manager.KubernetesOptimizerContainer`

Kubernetes container support the following properties:
Expand Down

0 comments on commit da1161d

Please sign in to comment.