This page shows how to get started with the Cloud Client Libraries for the Dataproc API. However, we recommend using the older Google API Client Libraries if running on Google App Engine standard environment. Read more about the client libraries for Cloud APIs in Client Libraries Explained.
Dataproc Cloud Client Libraries may be in alpha or beta stage. See the library reference for details.Install the client library
C++
See Setting up a C++ development environment for details about this client library's requirements and install dependencies.
C#
For more information, see Setting Up a C# Development Environment.
Also see Google.Cloud.Dataproc.V1 InstallationGo
For more information, see Setting Up a Go Development Environment.
go get cloud.google.com/go/dataproc/apiv1
For more information, see Install the Cloud Client Libraries for Go.
Java
For more information, see Setting Up a Java Development Environment.
If you are using Maven, add this to your pom.xml file:<dependency> <groupId>com.google.cloud</groupId> <artifactId>google-cloud-dataproc</artifactId> <version>insert dataproc-library-version here</version> </dependency>
If you are using Gradle, add this to your dependencies:
compile group: 'com.google.cloud', name: 'google-cloud-dataproc', version: 'insert dataproc-library-version here'
Node.js
For more information, see Setting Up a Node.js Development Environment.
npm install --save @google-cloud/dataproc
PHP
For more information, see Using PHP on Google Cloud.
composer require google/cloud
Python
For more information, see Setting Up a Python Development Environment.
pip install --upgrade google-cloud-dataproc
Ruby
For more information, see Setting Up a Ruby Development Environment.
gem install google-cloud-dataproc
Set up authentication
When you use client libraries, you use Application Default Credentials (ADC) to authenticate. For information about setting up ADC, see Provide credentials for Application Default Credentials. For information about using ADC with client libraries, see Authenticate using client libraries.
Use the client library
The following example shows how to use the client library.
C++
Before trying this sample, follow the C++ setup instructions in the Dataproc quickstart using client libraries. For more information, see the Dataproc C++ API reference documentation.
To authenticate to Dataproc, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
+Go
Before trying this sample, follow the Go setup instructions in the Dataproc quickstart using client libraries. For more information, see the Dataproc Go API reference documentation.
To authenticate to Dataproc, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Java
Before trying this sample, follow the Java setup instructions in the Dataproc quickstart using client libraries. For more information, see the Dataproc Java API reference documentation.
To authenticate to Dataproc, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
Node.js
Before trying this sample, follow the Node.js setup instructions in the Dataproc quickstart using client libraries. For more information, see the Dataproc Node.js API reference documentation.
To authenticate to Dataproc, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.
.Python
Before trying this sample, follow the Python setup instructions in the Dataproc quickstart using client libraries. For more information, see the Dataproc Python API reference documentation.
To authenticate to Dataproc, set up Application Default Credentials. For more information, see Set up authentication for a local development environment.