Skip to main content
  • Place orders quickly and easily
  • View orders and track your shipping status
  • Enjoy members-only rewards and discounts
  • Create and access a list of your products
  • Manage your Dell EMC sites, products, and product-level contacts using Company Administration.

ECS 3.6.2 Data Access Guide

PDF

Load metadata values to ECS using the Management REST API

You can supply the metadata values required to secure an ECS bucket for use with a secure Hadoop cluster by running ECS Management REST API commands.

You must have ECS System Administrator credentials.

If the Hadoop administrator is not the ECS System Administrator, the Hadoop administrator must work in conjunction with the ECS System Administrator to load the secure metadata to the bucket.

The Hadoop administrator can make the JSON metadata file available to the ECS System Administrator, who can then use this procedure to load the metadata. If the two roles are assumed by the same user, then that user is responsible for creating the JSON metadata file and loading it to the ECS bucket.

  1. Create the JSON file that contains the metadata, as described in: Secure the ECS bucket using metadata.
  2. Log in to ECS using your System Administrator credentials in order to obtain an authentication token that can be used when running ECS management commands.
    You can run the login command using curl. In the following example, you must replace the <username>:<password> with ECS System Administrator credentials and supply the IP address or hostname of an ECS node.
    TOKEN=$(curl -s -k -u <username>:<password> -D - -o /dev/null https://<ECS node IP or hostname>:4443/login | grep X-SDS-AUTH-TOKEN | tr -cd '\40-\176')
  3. Run the PUT object/bucket/<bucketname>/metadata ECS Management REST API command to deploy the metadata, as shown in the following example
    curl -s -k -X PUT -H "$TOKEN" -H "Accept: application/json" -H "Content-Type: application/json" -T <bucketDetails>.json https:/<hostname>:4443/object/bucket/<bucketname>/metadata?namespace=<namespace>
    You must replace:
    • <username> with an ECS System Administrator username.
    • <password> with the password for the specified ECS System Administrator username.
    • <bucketname> with the name of the bucket you are using for HDFS data.
    • <hostname> with the IP address or hostname of an ECS node.
    • <bucketdetails> with the filename of the JSON file containing name-value pairs.
    • <namespace> with the name of the namespace the bucket resides in.
    Once deployed, the metadata is available to all ECS nodes.

Rate this content

Accurate
Useful
Easy to understand
Was this article helpful?
0/3000 characters
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please provide ratings (1-5 stars).
  Please select whether the article was helpful or not.
  Comments cannot contain these special characters: <>()\