diff --git a/doc/user_guide/user_guide.md b/doc/user_guide/user_guide.md index 6f935c0b..c119430e 100644 --- a/doc/user_guide/user_guide.md +++ b/doc/user_guide/user_guide.md @@ -150,7 +150,7 @@ downloaded jar file is the same as the checksum provided in the releases. To check the SHA256 result of the local jar, run the command: ```sh -sha256sum exasol-cloud-storage-extension-2.8.3.jar +sha256sum exasol-cloud-storage-extension-2.8.4.jar ``` ### Building From Source @@ -180,7 +180,7 @@ mvn clean package -DskipTests=true ``` The assembled jar file should be located at -`target/exasol-cloud-storage-extension-2.8.3.jar`. +`target/exasol-cloud-storage-extension-2.8.4.jar`. ### Create an Exasol Bucket @@ -202,7 +202,7 @@ for the HTTP protocol. Upload the jar file using curl command: ```sh -curl -X PUT -T exasol-cloud-storage-extension-2.8.3.jar \ +curl -X PUT -T exasol-cloud-storage-extension-2.8.4.jar \ http://w:@exasol.datanode.domain.com:2580// ``` @@ -234,7 +234,7 @@ OPEN SCHEMA CLOUD_STORAGE_EXTENSION; CREATE OR REPLACE JAVA SET SCRIPT IMPORT_PATH(...) EMITS (...) AS %scriptclass com.exasol.cloudetl.scriptclasses.FilesImportQueryGenerator; - %jar /buckets/bfsdefault//exasol-cloud-storage-extension-2.8.3.jar; + %jar /buckets/bfsdefault//exasol-cloud-storage-extension-2.8.4.jar; / CREATE OR REPLACE JAVA SCALAR SCRIPT IMPORT_METADATA(...) EMITS ( @@ -244,12 +244,12 @@ CREATE OR REPLACE JAVA SCALAR SCRIPT IMPORT_METADATA(...) EMITS ( end_index DECIMAL(36, 0) ) AS %scriptclass com.exasol.cloudetl.scriptclasses.FilesMetadataReader; - %jar /buckets/bfsdefault//exasol-cloud-storage-extension-2.8.3.jar; + %jar /buckets/bfsdefault//exasol-cloud-storage-extension-2.8.4.jar; / CREATE OR REPLACE JAVA SET SCRIPT IMPORT_FILES(...) EMITS (...) AS %scriptclass com.exasol.cloudetl.scriptclasses.FilesDataImporter; - %jar /buckets/bfsdefault//exasol-cloud-storage-extension-2.8.3.jar; + %jar /buckets/bfsdefault//exasol-cloud-storage-extension-2.8.4.jar; / ``` @@ -268,12 +268,12 @@ OPEN SCHEMA CLOUD_STORAGE_EXTENSION; CREATE OR REPLACE JAVA SET SCRIPT EXPORT_PATH(...) EMITS (...) AS %scriptclass com.exasol.cloudetl.scriptclasses.TableExportQueryGenerator; - %jar /buckets/bfsdefault//exasol-cloud-storage-extension-2.8.3.jar; + %jar /buckets/bfsdefault//exasol-cloud-storage-extension-2.8.4.jar; / CREATE OR REPLACE JAVA SET SCRIPT EXPORT_TABLE(...) EMITS (ROWS_AFFECTED INT) AS %scriptclass com.exasol.cloudetl.scriptclasses.TableDataExporter; - %jar /buckets/bfsdefault//exasol-cloud-storage-extension-2.8.3.jar; + %jar /buckets/bfsdefault//exasol-cloud-storage-extension-2.8.4.jar; / ``` @@ -407,13 +407,13 @@ CREATE OR REPLACE JAVA SCALAR SCRIPT IMPORT_METADATA(...) EMITS ( ) AS %jvmoption -DHTTPS_PROXY=http://username:password@10.10.1.10:1180 %scriptclass com.exasol.cloudetl.scriptclasses.FilesMetadataReader; - %jar /buckets/bfsdefault//exasol-cloud-storage-extension-2.8.3.jar; + %jar /buckets/bfsdefault//exasol-cloud-storage-extension-2.8.4.jar; / CREATE OR REPLACE JAVA SET SCRIPT IMPORT_FILES(...) EMITS (...) AS %jvmoption -DHTTPS_PROXY=http://username:password@10.10.1.10:1180 %scriptclass com.exasol.cloudetl.scriptclasses.FilesDataImporter; - %jar /buckets/bfsdefault//exasol-cloud-storage-extension-2.8.3.jar; + %jar /buckets/bfsdefault//exasol-cloud-storage-extension-2.8.4.jar; / ``` diff --git a/extension/generate-description.sh b/extension/generate-description.sh index 8225403a..24f8fca2 100755 --- a/extension/generate-description.sh +++ b/extension/generate-description.sh @@ -20,7 +20,12 @@ fi readonly complete_path="${all_built_files[0]}" file_name=$(basename "$complete_path") readonly file_name -file_size_bytes=$(stat -c%s "$complete_path") +case $(uname -s) in + Darwin*) + file_size_bytes=$(stat -f %z "$complete_path");; + *) + file_size_bytes=$(stat -c%s "$complete_path");; +esac readonly file_size_bytes version=