E-Book, Englisch, 265 Seiten
Vohra Pro Docker
1. ed
ISBN: 978-1-4842-1830-3
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark
E-Book, Englisch, 265 Seiten
ISBN: 978-1-4842-1830-3
Verlag: Apress
Format: PDF
Kopierschutz: 1 - PDF Watermark
In this fast-paced book on the Docker open standards platform for developing, packaging and running portable distributed applications, Deepak Vorhadiscusses how to build, ship and run applications on any platform such as a PC, the cloud, data center or a virtual machine. He describes how to install and create Docker images. and the advantages off Docker containers.The remainder of the book is devoted to discussing using Docker with important software solutions. He begins by discussing using Docker with a traditional RDBMS using Oracle and MySQL. Next he moves on to NoSQL with chapter on MongoDB Cassandra, and Couchbase. Then he addresses the use of Docker in the Hadoop ecosystem with complete chapters on utilizing not only Hadoop, but Hive, HBase, Sqoop, Kafka, Solr and Spark.
What You Will LearnHow to install a Docker image
How to create a Docker container
How to run an Application in a Docker Container
Use Docker with Apache Hadoop Ecosystem
Use Docker with NoSQL Databases
Use Docker with RDBMS
Who This Book Is ForApache Hadoop Developers. Database developers. NoSQL Developers.
Deepak Vohra is a consultant and a principal member of the NuBean-dot-com software company. Deepak is a Sun-certified Java programmer and Web component developer.He has worked in the fields of XML, Java programming, and Java EE for over five years. Deepak is the coauthor of Pro XML Development with Java Technology (Apress, 2006). Deepak is also the author of the JDBC 4.0 and Oracle JDeveloper for J2EE Development, Processing XML Documents with Oracle JDeveloper 11g, EJB 3.0 Database Persistence with Oracle Fusion Middleware 11g, and Java EE Development in Eclipse IDE (Packthing). He also served as the technical reviewer on WebLogic: The Definitive Guide (O'Reilly Media, 2004) and Ruby Programming for the Absolute Beginner (Cengage Learning PTR, 2007).
Autoren/Hrsg.
Weitere Infos & Material
1;Contents at a Glance;4
2;Contents;5
3;About the Author;13
4;About the Technical Reviewer;14
5;Chapter 1: Hello Docker;15
5.1; Setting the Environment;16
5.2; Installing Docker on Red Hat 7;19
5.3; Uninstalling Docker;21
5.4; Installing a Specific Docker Version;21
5.5; Installing Docker on Ubuntu;21
5.6; Starting the Docker Service;22
5.7; Finding the Docker Service Status;23
5.8; Running a Docker Hello World Application;23
5.9; Downloading a Docker Image;25
5.10; Running an Application in a Docker Container;26
5.11; Listing Running Docker Containers;27
5.12; Accessing the Application Output on Command Line;28
5.13; Accessing the Application Output in a Browser;29
5.14; Stopping a Docker Container;30
5.15; Removing a Docker Container;31
5.16; Removing a Docker Image;31
5.17; Stopping the Docker Service;32
5.18; Summary;32
6;Chapter 2: Installing Linux;33
6.1; Setting the Environment;33
6.2; Downloading the Docker Image;35
6.3; Listing Docker Images;35
6.4; Running a Container in Detached Mode;36
6.5; Running a Container in Foreground;37
6.6; Listing Docker Containers;37
6.7; Finding Oracle Linux Container Information;38
6.8; Listing the Container Processes;39
6.9; Starting an Interactive Shell;40
6.10; Creating a Container;42
6.11; Stopping a Container;43
6.12; Removing a Container;43
6.13; Summary;44
7;Chapter 3: Using Oracle Database;45
7.1; Setting the Environment;45
7.2; Starting Oracle Database;47
7.3; Listing Container Logs;48
7.4; Starting SQL* Plus;50
7.5; Creating a User;51
7.6; Creating a Database Table;52
7.7; Removing Oracle Database;53
7.8; Summary;54
8;Chapter 4: Using MySQL Database;55
8.1; Setting the Environment;56
8.2; Starting MySQL Server;58
8.3; Starting MySQL CLI Shell;60
8.4; Setting the Database to Use;60
8.5; Creating a Database Table;61
8.6; Adding Table Data;61
8.7; Querying a Table;62
8.8; Listing Databases and Tables;62
8.9; Exiting TTY Terminal;63
8.10; Stopping a Docker Container;63
8.11; Starting Another MySQL Server Instance;64
8.12; Listing Docker Container Logs;68
8.13; Summary;69
9;Chapter 5: Using MongoDB;70
9.1; Setting the Environment;71
9.2; Starting MongoDB;72
9.3; Starting an Interactive Terminal;73
9.4; Starting a Mongo Shell;73
9.5; Creating a Database;76
9.6; Creating a Collection;77
9.7; Creating a Document;78
9.8; Finding Documents;79
9.9; Adding Another Document;79
9.10; Querying a Single Document;81
9.11; Dropping a Collection;82
9.12; Adding a Batch of Documents;82
9.13; Updating a Document;84
9.14; Outputting Documents as JSON;85
9.15; Making a Backup of the Data;86
9.16; Removing Documents;88
9.17; Stopping and Restarting the MongoDB Database;91
9.18; Exiting the Mongo Shell;93
9.19; Summary;93
10;Chapter 6: Using Apache Cassandra;94
10.1; Setting the Environment;95
10.2; Starting Apache Cassandra;96
10.3; Starting the TTY;97
10.4; Connecting to CQL Shell;98
10.5; Creating a Keyspace;98
10.6; Altering A Keyspace;99
10.7; Using A Keyspace;99
10.8; Creating a Table;100
10.9; Adding Table Data;100
10.10; Querying a Table;101
10.11; Deleting from a Table;102
10.12; Truncating a Table;103
10.13; Dropping A Table;103
10.14; Dropping a Keyspace;104
10.15; Exiting CQL Shell;104
10.16; Stopping Apache Cassandra;105
10.17; Starting Multiple Instances of Apache Cassandra;105
10.18; Summary;106
11;Chapter 7: Using Couchbase Server;107
11.1; Setting the Environment;107
11.2; Starting Couchbase;110
11.3; Accessing Couchbase Web Console;111
11.4; Configuring Couchbase Server Cluster;113
11.5; Adding Documents;121
11.6; Starting Interactive Terminal;126
11.7; Running Couchbase CLI Tools;126
11.8; Stopping Couchbase Server and Container;127
11.9; Summary;127
12;Chapter 8: Using Apache Hadoop;128
12.1; Setting the Environment;128
12.2; Starting Hadoop;130
12.3; Starting the Interactive Shell;131
12.4; Creating Input Files for a MapReduce Word Count Application;132
12.5; Running a MapReduce Word Count Application;135
12.6; Stopping the Hadoop Docker Container;139
12.7; Using a CDH Docker Image;139
12.8; Summary;141
13;Chapter 9: Using Apache Hive;142
13.1; Setting the Environment;142
13.2; Starting Apache Hive;143
13.3; Connecting to Beeline CLI Shell;143
13.4; Connecting to HiveServer2;144
13.5; Creating a Hive Table;146
13.6; Loading Data into the Hive Table;147
13.7; Querying Hive Table;149
13.8; Stopping Apache Hive;149
13.9; Summary;150
14;Chapter 10: Using Apache HBase;151
14.1; Setting the Environment;151
14.2; Starting CDH;153
14.3; Starting Interactive Shell;153
14.4; Starting HBase Shell;154
14.5; Creating a HBase Table;154
14.6; Listing HBase Tables;156
14.7; Getting A Single Table Row;157
14.8; Getting A Single Row Column;157
14.9; Scanning a Table;158
14.10; Stopping CDH;159
14.11; Summary;160
15;Chapter 11: Using Apache Sqoop;161
15.1; Setting the Environment;162
15.2; Starting Docker Containers;163
15.3; Starting Interactive Terminals;165
15.4; Creating a MySQL Tables;165
15.5; Adding MySQL JDBC Jar to Sqoop Classpath;170
15.6; Setting the JAVA_HOME Environment Variable;170
15.7; Configuring Apache Hadoop;173
15.8; Importing MySQL Table Data into HDFS with Sqoop;177
15.9; Listing Data Imported into HDFS;184
15.10; Exporting from HDFS to MySQL with Sqoop;185
15.11; Querying Exported Data;191
15.12; Stopping and Removing Docker Containers;192
15.13; Summary;193
16;Chapter 12: Using Apache Kafka;194
16.1; Setting the Environment;195
16.2; Starting Docker Containers for Apache Kafka;197
16.3; Finding IP Addresses;198
16.4; Listing the Kafka Logs;199
16.5; Creating a Kafka Topic;199
16.6; Starting the Kafka Producer;200
16.7; Starting the Kafka Consumer;200
16.8; Producing and Consuming Messages;201
16.9; Stopping and Removing the Docker Containers;202
16.10; Summary;203
17;Chapter 13: Using Apache Solr;204
17.1; Setting the Environment;204
17.2; Starting Docker Container for Apache Solr Server;206
17.3; Starting the Interactive Shell;208
17.4; Logging in to the Solr Admin Console;209
17.5; Creating a Core Index;210
17.6; Loading Sample Data;213
17.7; Querying Apache Solr in Solr Admin Console;215
17.8; Querying Apache Solr using REST API Client;219
17.9; Deleting Data;223
17.10; Listing Logs;225
17.11; Stopping Apache Solr Server;226
17.12; Summary;227
18;Chapter 14: Using Apache Spark;228
18.1; Setting the Environment;228
18.2; Running the Docker Container for CDH;229
18.3; Running Apache Spark Job in yarn-cluster Mode;230
18.4; Running Apache Spark Job in yarn-client Mode;233
18.5; Running the Apache Spark Shell;235
18.6; Summary;237
19;Appendix A: Using the Amazon EC2;238
19.1; Creating an Amazon EC2 Instance;238
19.2; Creating a Key Pair;244
19.3; Starting an Amazon EC2 Instance;246
19.4; Connecting to an Amazon EC2 Instance;247
19.5; Finding the Public IP Address;249
19.6; Finding the Public DNS;249
19.7; Adding the default Security Group;253
19.8; Stopping an Amazon EC2 Instance;258
19.9; Changing the Instance Type;259
19.10; Summary;261
20;Index;262




