Amazon Redshift Guida Utente Pagina 136

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 255
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 135
The AmazonRedshiftClient class defines methods that map to underlying Amazon Redshift Query
API actions. (These actions are described in the Amazon Redshift API Reference). When you call a
method, you must create a corresponding request object and response object.The request object includes
information that you must pass with the actual request.The response object include information returned
from Amazon Redshift in response to the request.
For example, the AmazonRedshiftClient class provides the createCluster method to provision a
cluster. This method maps to the underlying CreateCluster API action.You create a
CreateClusterRequest object to pass information with the createCluster method.
AmazonRedshiftClient client = new AmazonRedshiftClient(credentials);
client.setEndpoint("https://redshift.us-east-1.amazonaws.com/");
CreateClusterRequest request = new CreateClusterRequest()
.withClusterIdentifier("exampleclusterusingjava")
.withMasterUsername("masteruser")
.withMasterUserPassword("12345678Aa")
.withNodeType("dw.hs1.xlarge")
.withNumberOfNodes(2);
Cluster createResponse = client.createCluster(request);
System.out.println("Created cluster " + createResponse.getClusterIdentifier());
Running Java Examples for Amazon Redshift Using Eclipse
General Process of Running Java Code Examples Using Eclipse
1. Create a new AWS Java Project in Eclipse.
Follow the steps in Setting Up the AWS Toolkit for Eclipse in the AWS Toolkit for Eclipse Getting
Started Guide.
2. Copy the sample code from the section of this document that you are reading and paste it into your
project as a new Java class file.
3. Run the code.
Running Java Examples for Amazon Redshift from the
Command Line
General Process of Running Java Code Examples from the Command Line
1. Set up and test your environment as follows:
a. Create a directory to work in and in it create src, bin, and sdk subfolders.
b. Download the AWS SDK for Java and unzip it to the sdk subfolder you created. After you unzip the
SDK, you should have four subdirectories in the sdk folder, including a lib and third-party
folder.
c. Supply your AWS credentials to the SDK for Java. For more information, go to Providing AWS
Credentials in the AWS SDK for Java in the AWS SDK for Java Developer Guide.
d. Ensure that you can run the Java program compiler (javac) and the Java application launcher
(java) from your working directory.You can test by running the following commands:
javac -help
java -help
API Version 2012-12-01
130
Amazon Redshift Management Guide
Using the AWS SDK for Java
Vedere la pagina 135
1 2 ... 131 132 133 134 135 136 137 138 139 140 141 ... 254 255

Commenti su questo manuale

Nessun commento

Zanussi ZK630L manuály

Uživatelské manuály a uživatelské příručky pro Sporáky Zanussi ZK630L .
Poskytujeme 1 manuály pdf Zanussi ZK630L ke stažení zdarma podle typů dokumentů: Uživatelský manuál






Další produkty a příručky pro Sporáky Zanussi

Modely Typ Dokumentu
ZKT 623LX ZANUSSI Uživatelský manuál     ZANUSSI ZKT 623LX ZANUSSI Brugermanual, 108 stránky
ZA600F Uživatelský manuál   ZANUSSI ZA600F Benutzerhandbuch, 16 stránky
ZEI6740BBA Uživatelský manuál   ZANUSSI ZEI6740BBA User Manual, 16 stránky
ZAV6046XBA Uživatelský manuál   ZANUSSI ZAV6046XBA Benutzerhandbuch, 12 stránky
ZEV6140NBA Uživatelský manuál   ZANUSSI ZEV6140NBA User Manual, 16 stránky
ZC6675N Uživatelský manuál   ZANUSSI ZC6675W Benutzerhandbuch, 24 stránky
ZIT64X Uživatelský manuál      ZANUSSI ZIT64X Handleiding, 64 stránky
ZGG62417XA Uživatelský manuál      ZANUSSI ZGG62417XA Handleiding, 40 stránky
ZGO62414BA Uživatelský manuál   ZANUSSI ZGO62414BA User Manual, 16 stránky
ZGG62414WA Uživatelský manuál   ZANUSSI ZGG62414WA User Manual, 16 stránky
ZEV6940XBV Uživatelský manuál   ZANUSSI ZEV6940XBV User Manual, 12 stránky
ZEL6640FBA Uživatelský manuál   ZANUSSI ZEL6640FBA User Manual, 20 stránky
ZEV8646XBA Uživatelský manuál   ZANUSSI ZEV8646XBA User Manual, 16 stránky
ZGL642TX Uživatelský manuál   ZANUSSI ZGL642TX User Manual, 16 stránky
ZAE6040XA Uživatelský manuál   ZANUSSI ZAE6040XA Benutzerhandbuch, 12 stránky
ZEV8646XBA Uživatelský manuál   ZANUSSI ZEV8646XBA User Manual [de] , 16 stránky
ZK661X ZANUSSI Uživatelský manuál   ZANUSSI ZK661X ZANUSSI Benutzerhandbuch [it] , 24 stránky
ZA630F Uživatelský manuál   ZANUSSI ZA630F Benutzerhandbuch, 16 stránky
ZEV6940FBA JO4 Uživatelský manuál   ZANUSSI ZEV6940FBA JO4 User Manual [en] , 12 stránky
ZKT656 LX Uživatelský manuál   ZANUSSI ZKT656 LX Handleiding [it] , 32 stránky