मुख्य विषयवस्तु में जाएं

Configure Cloud Object Storage (GCS, S3, Azure) for Data Lake

Ilum allows you to link जीसीएस, एस 3, डब्ल्यूएएसबीएसऔर एचडीएफएस storages to your clusters. Linking storage allows Ilum to automatically configure all your jobs to use your cloud data lakes seamlessly, eliminating the need for manual Spark parameter configuration.

Supported Storage Providers

Providerप्रकारया क़िस्‍म
Google क्लाउड स्टोरेजजीसीएसNative integration for GCP projects.
अमेज़न S3एस 3Standard S3 and S3-compatible storage support.
Azure ब्लॉब संग्रहणWASBS/ABFSIntegration for Azure data lakes.
एचडीएफएसएचडीएफएसConnect to existing Hadoop Distributed File Systems.

Google क्लाउड स्टोरेज (GCS)

Step 1: Create a GCS Bucket

डेमो:

पूर्ण स्क्रीन में गाइड

  1. Create a Google Cloud Project

    • Open Google Cloud Console और पर जाएं परियोजना चयनकर्ता / Manage Resources.
    • क्लिक करना New Project / Create Project.
    • Enter a Project name, choose Organization और स्थान.
  2. Create a GCS Bucket

    • In the Console, navigate to बादल भंडारणBuckets.
    • क्लिक करना बनाना.
    • Enter a globally unique Bucket name (e.g., my-ilum-bucket) and select your Region.
    नोट

    Remember the bucket name you created - you will need it when adding this storage to Ilum.

  3. Create a Service Account and JSON Key

    • यहाँ जाओ IAM & AdminService Accounts.
    • क्लिक करना Create Service Account, fill in details, and grant Storage Admin roles.
    • Click the created email, go to the Keys tab, and Create new key (JSON).
    • Save the downloaded JSON file securely.
    important

    Organization Policy Update: In new organizations, creating service account keys might be disabled by default. Contact your administrator if you cannot create keys.

Step 2: Add GCS to Ilum Cluster

डेमो:

पूर्ण स्क्रीन में गाइड

  1. Navigate to वर्कलोडक्लस्टर्ससंपादन करनाभंडारAdd Storage.

  2. Configure General Settings:

ParameterValue Exampleया क़िस्‍म
नामmy-gcs-storageUnique name for this storage config.
प्रकारजीसीएसSelect GCS provider.
स्पार्क बाल्टीmy-ilum-bucketBucket for Spark logs/events.
डेटा बकेटmy-ilum-bucketBucket for your data.
  1. Configure GCS Authorization: Open your JSON key file and copy the values:
ParameterSource Keyया क़िस्‍म
Client Emailclient_emailService account email address.
Private Keyprivate_keyFull key including -----BEGIN....
Private Key IDprivate_key_idKey ID string.
  1. क्लिक करना जमा करें to save.

Step 3: Verify Connection

To ensure your storage is correctly configured, run a simple Spark job.

  1. Create a Code Service:

    • यहाँ जाओ वर्कलोडसेवाएँNew Service +.
    • Select प्रकार: कोड, भाषा: स्काला, and your गुच्‍छा.
  2. Execute Test Code: Paste and run the following Scala code:

    Test Storage Connection
    // Write test data
    val डाटा = Seq(("Alice", 34), ("Bob", 45))
    val लोमो = उत्तेजक गुण.createDataFrame(डाटा).toDF("नाम", "age")

    // Replace with your bucket path (e.g., gs://..., s3a://..., wasbs://...)
    val पथ = "gs://my-ilum-bucket/output/"

    लोमो.लिखना.मोड समूह("अधिलेखन").format("csv").save(पथ)

    // Read back data
    उत्तेजक गुण.पढ़ना.format("csv").load(पथ).प्रदर्शन()
  3. Check Results: If the job completes and displays the data table, your storage connection is active.


Common Issues & FAQ

Why do I get a "Permission Denied" error?

कारण: The Service Account or User doesn't have permissions to access the bucket. विलयन:

  1. Go to your cloud provider's console (e.g., Google Cloud Console).
  2. Navigate to the bucket's अनुमतियाँ बिल।
  3. Grant your service account the Storage Admin नहीं तो Storage Object Admin role.

Why does it say "Bucket does not exist"?

कारण: The bucket name in your code doesn't match the actual bucket name, or the region is incorrect. विलयन:

  1. Verify the bucket exists in your cloud console.
  2. Check that the bucket name in your code matches exactly (names are often case-sensitive).

Why do I get "Invalid credentials"?

कारण: The keys (JSON or Access Keys) were not copied correctly. विलयन:

  1. Re-open your key file.
  2. Carefully copy the values again. For GCS, ensure you include the -----निजी कुंजी शुरू करें----- और -----अंत निजी कुंजी----- lines.
  3. Re-save the storage configuration in Ilum.