[ https://issues.apache.org/jira/browse/HDFS-17698?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17908422#comment-17908422 ]
ASF GitHub Bot commented on HDFS-17698: --------------------------------------- hadoop-yetus commented on PR #7252: URL: https://github.com/apache/hadoop/pull/7252#issuecomment-2563539611 :broken_heart: **-1 overall** | Vote | Subsystem | Runtime | Logfile | Comment | |:----:|----------:|--------:|:--------:|:-------:| | +0 :ok: | reexec | 1m 2s | | Docker mode activated. | |||| _ Prechecks _ | | +1 :green_heart: | dupname | 0m 0s | | No case conflicting files found. | | +0 :ok: | codespell | 0m 1s | | codespell was not available. | | +0 :ok: | detsecrets | 0m 1s | | detect-secrets was not available. | | +1 :green_heart: | @author | 0m 0s | | The patch does not contain any @author tags. | | -1 :x: | test4tests | 0m 0s | | The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. | |||| _ trunk Compile Tests _ | | +1 :green_heart: | mvninstall | 35m 42s | | trunk passed | | +1 :green_heart: | compile | 0m 39s | | trunk passed with JDK Ubuntu-11.0.25+9-post-Ubuntu-1ubuntu120.04 | | +1 :green_heart: | compile | 0m 36s | | trunk passed with JDK Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga | | +1 :green_heart: | checkstyle | 0m 33s | | trunk passed | | +1 :green_heart: | mvnsite | 0m 40s | | trunk passed | | +1 :green_heart: | javadoc | 0m 41s | | trunk passed with JDK Ubuntu-11.0.25+9-post-Ubuntu-1ubuntu120.04 | | +1 :green_heart: | javadoc | 0m 34s | | trunk passed with JDK Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga | | +1 :green_heart: | spotbugs | 1m 6s | | trunk passed | | +1 :green_heart: | shadedclient | 34m 19s | | branch has no errors when building and testing our client artifacts. | |||| _ Patch Compile Tests _ | | +1 :green_heart: | mvninstall | 0m 29s | | the patch passed | | +1 :green_heart: | compile | 0m 30s | | the patch passed with JDK Ubuntu-11.0.25+9-post-Ubuntu-1ubuntu120.04 | | +1 :green_heart: | javac | 0m 30s | | the patch passed | | +1 :green_heart: | compile | 0m 28s | | the patch passed with JDK Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga | | +1 :green_heart: | javac | 0m 27s | | the patch passed | | +1 :green_heart: | blanks | 0m 0s | | The patch has no blanks issues. | | +1 :green_heart: | checkstyle | 0m 20s | | the patch passed | | +1 :green_heart: | mvnsite | 0m 30s | | the patch passed | | +1 :green_heart: | javadoc | 0m 27s | | the patch passed with JDK Ubuntu-11.0.25+9-post-Ubuntu-1ubuntu120.04 | | +1 :green_heart: | javadoc | 0m 26s | | the patch passed with JDK Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga | | +1 :green_heart: | spotbugs | 1m 3s | | the patch passed | | +1 :green_heart: | shadedclient | 34m 16s | | patch has no errors when building and testing our client artifacts. | |||| _ Other Tests _ | | +1 :green_heart: | unit | 2m 20s | | hadoop-azure in the patch passed. | | +1 :green_heart: | asflicense | 0m 36s | | The patch does not generate ASF License warnings. | | | | 118m 48s | | | | Subsystem | Report/Notes | |----------:|:-------------| | Docker | ClientAPI=1.47 ServerAPI=1.47 base: https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7252/1/artifact/out/Dockerfile | | GITHUB PR | https://github.com/apache/hadoop/pull/7252 | | Optional Tests | dupname asflicense compile javac javadoc mvninstall mvnsite unit shadedclient spotbugs checkstyle codespell detsecrets | | uname | Linux f25a64d3e39a 5.15.0-124-generic #134-Ubuntu SMP Fri Sep 27 20:20:17 UTC 2024 x86_64 x86_64 x86_64 GNU/Linux | | Build tool | maven | | Personality | dev-support/bin/hadoop.sh | | git revision | trunk / e48fb10b1d8e102668b3beb1ec7f89b396af03ff | | Default Java | Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga | | Multi-JDK versions | /usr/lib/jvm/java-11-openjdk-amd64:Ubuntu-11.0.25+9-post-Ubuntu-1ubuntu120.04 /usr/lib/jvm/java-8-openjdk-amd64:Private Build-1.8.0_432-8u432-ga~us1-0ubuntu2~20.04-ga | | Test Results | https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7252/1/testReport/ | | Max. process+thread count | 555 (vs. ulimit of 5500) | | modules | C: hadoop-tools/hadoop-azure U: hadoop-tools/hadoop-azure | | Console output | https://ci-hadoop.apache.org/job/hadoop-multibranch/job/PR-7252/1/console | | versions | git=2.25.1 maven=3.6.3 spotbugs=4.2.2 | | Powered by | Apache Yetus 0.14.0 https://yetus.apache.org | This message was automatically generated. > Introduce a key to config the azurite custom host > ------------------------------------------------- > > Key: HDFS-17698 > URL: https://issues.apache.org/jira/browse/HDFS-17698 > Project: Hadoop HDFS > Issue Type: Improvement > Components: tools > Affects Versions: 3.3.6 > Reporter: Yan Zhao > Priority: Minor > Labels: pull-request-available > > In the integration test case, we will start the Azurite using the test > container, and we need to access Azurite at another container. > Now, the Azurite emulator uri values is fixed at 127.0.0.1, so at another > container, it can't access the Azurite service. > So I want to introduce a new config `fs.azure.storage.emulator.proxy.url`, so > that I can config `fs.azure.storage.emulator.proxy.url=http://\{AzuriteIp}`, > then it can access the Azurite service. > > > {code:java} > private void connectUsingCredentials(String accountName, > StorageCredentials credentials, String containerName) > throws URISyntaxException, StorageException, AzureException { > URI blobEndPoint; > if (isStorageEmulatorAccount(accountName)) { > isStorageEmulator = true; > CloudStorageAccount account = > CloudStorageAccount.getDevelopmentStorageAccount(); > storageInteractionLayer.createBlobClient(account); > } else { > blobEndPoint = new URI(getHTTPScheme() + "://" + accountName); > storageInteractionLayer.createBlobClient(blobEndPoint, credentials); > } > suppressRetryPolicyInClientIfNeeded(); > // Capture the container reference for debugging purposes. > container = storageInteractionLayer.getContainerReference(containerName); > rootDirectory = container.getDirectoryReference(""); > // Can only create container if using account key credentials > canCreateOrModifyContainer = credentials instanceof > StorageCredentialsAccountAndKey; > } {code} > > {code:java} > public static CloudStorageAccount getDevelopmentStorageAccount() { > try { > return getDevelopmentStorageAccount(null); > } > catch (final URISyntaxException e) { > // this won't happen since we know the standard development stororage > uri is valid. > return null; > } > } > public static CloudStorageAccount getDevelopmentStorageAccount(final URI > proxyUri) throws URISyntaxException { > String scheme; > String host; > if (proxyUri == null) { > scheme = "http"; > host = "127.0.0.1"; > } > else { > scheme = proxyUri.getScheme(); > host = proxyUri.getHost(); > } > StorageCredentials credentials = new > StorageCredentialsAccountAndKey(DEVSTORE_ACCOUNT_NAME, > DEVSTORE_ACCOUNT_KEY); > URI blobPrimaryEndpoint = new > URI(String.format(DEVELOPMENT_STORAGE_PRIMARY_ENDPOINT_FORMAT, scheme, host, > "10000", DEVSTORE_ACCOUNT_NAME)); > URI queuePrimaryEndpoint = new > URI(String.format(DEVELOPMENT_STORAGE_PRIMARY_ENDPOINT_FORMAT, scheme, host, > "10001", DEVSTORE_ACCOUNT_NAME)); > URI tablePrimaryEndpoint = new > URI(String.format(DEVELOPMENT_STORAGE_PRIMARY_ENDPOINT_FORMAT, scheme, host, > "10002", DEVSTORE_ACCOUNT_NAME)); > URI blobSecondaryEndpoint = new > URI(String.format(DEVELOPMENT_STORAGE_SECONDARY_ENDPOINT_FORMAT, scheme, host, > "10000", DEVSTORE_ACCOUNT_NAME)); > URI queueSecondaryEndpoint = new > URI(String.format(DEVELOPMENT_STORAGE_SECONDARY_ENDPOINT_FORMAT, scheme, host, > "10001", DEVSTORE_ACCOUNT_NAME)); > URI tableSecondaryEndpoint = new > URI(String.format(DEVELOPMENT_STORAGE_SECONDARY_ENDPOINT_FORMAT, scheme, host, > "10002", DEVSTORE_ACCOUNT_NAME)); > CloudStorageAccount account = new CloudStorageAccount(credentials, new > StorageUri(blobPrimaryEndpoint, > blobSecondaryEndpoint), new StorageUri(queuePrimaryEndpoint, > queueSecondaryEndpoint), new StorageUri( > tablePrimaryEndpoint, tableSecondaryEndpoint), null /* > fileStorageUri */); > account.isDevStoreAccount = true; > return account; > } {code} > CloudStorageAccount account = > CloudStorageAccount.getDevelopmentStorageAccount(); will using 127.0.0.1 as > the `azurite` host. > > In fact, here we can pass into a proxy uri by invoke > getDevelopmentStorageAccount(final URI proxyUri) > > > > -- This message was sent by Atlassian Jira (v8.20.10#820010) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org