You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@drill.apache.org by vi...@apache.org on 2021/09/14 03:45:54 UTC

[drill-site] branch master updated: Fix formatting in OCI-OS-storage-plugin doc

This is an automated email from the ASF dual-hosted git repository.

vitalii pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/drill-site.git


The following commit(s) were added to refs/heads/master by this push:
     new e521796  Fix formatting in OCI-OS-storage-plugin doc
e521796 is described below

commit e521796164505ec801b2b8a2ded7d26accdd582d
Author: Vitalii Diravka <vi...@apache.org>
AuthorDate: Tue Sep 14 06:45:24 2021 +0300

    Fix formatting in OCI-OS-storage-plugin doc
---
 .../plugins/111-OCI-OS-storage-plugin.md           | 35 +++++++++++-----------
 1 file changed, 18 insertions(+), 17 deletions(-)

diff --git a/_docs/en/connect-a-data-source/plugins/111-OCI-OS-storage-plugin.md b/_docs/en/connect-a-data-source/plugins/111-OCI-OS-storage-plugin.md
index 97a8076..9b35dac 100644
--- a/_docs/en/connect-a-data-source/plugins/111-OCI-OS-storage-plugin.md
+++ b/_docs/en/connect-a-data-source/plugins/111-OCI-OS-storage-plugin.md
@@ -21,21 +21,22 @@ For additional information, refer to the [HDFS Connector for Object Storage](htt
 The **Storage** page in the Drill Web UI provides an OCI storage plugin that you configure to connect Drill to the OCI OS distributed file system registered in `core-site.xml`. If you did not define your OCI credentials in the `core-site.xml` file, you can define them in the storage plugin configuration. You can define the credentials directly in the OCI storage plugin configuration, or you can configure the OCI storage plugin to use an external provider.
 
 To configure the OCI OS storage plugin, log in to the Drill Web UI at `http://<drill-hostname>:8047`. The `drill-hostname` is a node on which Drill is running. Go to the **Storage** page and click **Update** next to the OCI OS storage plugin option or **Create** new if it doesn't exist yet. 
-
-	{
- 	"type": "file",
-	"connection": "oci://{bucket_name}@{namespace}/",
-	"config": {
-		"fs.oci.client.hostname": "https://objectstorage.us-ashburn-1.oraclecloud.com",
-		"fs.oci.client.auth.tenantId": "ocid1.tenancy.oc1..exampleuniqueID",
-		"fs.oci.client.auth.userId": "ocid1.user.oc1..exampleuniqueID",
-		"fs.oci.client.auth.fingerprint": "20:3b:97:13:55:1c:5b:0d:d3:37:d8:50:4e:c5:3a:34",
-		"fs.oci.client.auth.pemfilepath": "/opt/drill/conf/oci_api_key.pem"
-	    },
-	  "workspaces": {
-	    ...
-	  }  
-
+```
+{
+  "type": "file",
+  "connection": "oci://{bucket_name}@{namespace}",
+  "config": {
+    "fs.oci.client.hostname": "https://objectstorage.us-ashburn-1.oraclecloud.com",
+    "fs.oci.client.auth.tenantId": "ocid1.tenancy.oc1..exampleuniqueID",
+    "fs.oci.client.auth.userId": "ocid1.user.oc1..exampleuniqueID",
+    "fs.oci.client.auth.fingerprint": "20:3b:97:13:55:1c:5b:0d:d3:37:d8:50:4e:c5:3a:34",
+    "fs.oci.client.auth.pemfilepath": "/opt/drill/conf/oci_api_key.pem"
+  },
+  "workspaces": {
+    ...
+  }
+}  
+```
 **Note:** The `"config"` block in the OCI storage plugin configuration contains properties to define your OCI credentials. Do not include the `"config"` block in your OCI OS storage plugin configuration if you defined your OCI credentials in the `core-site.xml` file.
 
 To configure the plugin in core-site.xml file, navigate to the $DRILL_HOME/conf or $DRILL_SITE directory, and rename the core-site-example.xml file to core-site.xml
@@ -52,7 +53,7 @@ You can use different [Plugin credentials provider](https://github.com/apache/dr
 ```
 {
   "type": "file",
-  "connection": "oci://objectstorage-test-my-app-site-548c762a46e549ba@id1kowo7idm1/",
+  "connection": "oci://{bucket_name}@{namespace}",
   "workspaces": {...},
   "formats": {...},
   "credentialsProvider": {
@@ -68,4 +69,4 @@ You can use different [Plugin credentials provider](https://github.com/apache/dr
   },
   "enabled": true
 }
-```
\ No newline at end of file
+```