Appendix: Minimal cdap-site.xml

The following properties are the minimal required configuration for the cdap-site.xml file. They are included in the distribution in the file cdap-site.xml.example. See the installation instructions for details on how to configure a cdap-site.xml file for your particular distribution and situation.

A complete list of properties possible for the cdap-site.xml is in the appendix.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 <configuration> <!-- General Configuration --> <property> <name>hdfs.namespace</name> <value>/${root.namespace}</value> <description> Root directory for HDFS files written by CDAP </description> </property> <property> <name>hdfs.user</name> <value>yarn</value> <description> User name for accessing HDFS </description> </property> <property> <name>root.namespace</name> <value>cdap</value> <description> Root for this CDAP instance; used as the parent (or root) node for ZooKeeper, as the directory under which all CDAP data and metadata is stored in HDFS, and as the prefix for all HBase tables created by CDAP; must be composed of alphanumeric characters </description> </property> <property> <name>zookeeper.quorum</name> <value>127.0.0.1:2181/${root.namespace}</value> <description> ZooKeeper quorum string; specifies the ZooKeeper host:port; substitute the quorum (FQDN1:2181,FQDN2:2181,...) for the components shown here </description> </property> <!-- Applications Configuration --> <property> <name>master.services.bind.address</name> <value>0.0.0.0</value> <description> Bind address for app fabric service and dataset service </description> </property> <!-- Datasets Configuration --> <property> <name>data.tx.bind.address</name> <value>0.0.0.0</value> <description> Transaction service bind address </description> </property> <!-- Kafka Server Configuration --> <property> <name>kafka.server.default.replication.factor</name> <value>1</value> <description> CDAP Kafka service replication factor; used to replicate Kafka messages across multiple machines to prevent data loss in the event of a hardware failure. The recommended setting is to run at least two CDAP Kafka servers. If you are running two CDAP Kafka servers, set this value to 2; otherwise, set it to the maximum number of tolerated machine failures plus one (assuming you have that number of machines). </description> </property> <property> <name>kafka.server.log.dirs</name> <value>/tmp/kafka-logs</value> <description> Comma-separated list of CDAP Kafka service log storage directories </description> </property> <property> <name>kafka.seed.brokers</name> <value>FQDN1:9092,FQDN2:9092</value> <description> Comma-separated list of CDAP Kafka service brokers; for distributed CDAP, replace with list of FQDN:port brokers </description> </property> <!-- Router Configuration --> <property> <name>router.bind.address</name> <value>0.0.0.0</value> <description> CDAP Router service bind address </description> </property> <property> <name>router.bind.port</name> <value>11015</value> <description> CDAP Router service bind port </description> </property> <property> <name>router.server.address</name> <value>{ROUTER-HOST-IP}</value> <description> CDAP Router service address to which CDAP UI connects </description> </property> <property> <name>router.server.port</name> <value>${router.bind.port}</value> <description> CDAP Router service port to which CDAP UI connects </description> </property> <!-- UI Configuration --> <property> <name>dashboard.bind.port</name> <value>11011</value> <description> CDAP UI bind port </description> </property> </configuration>