Repository: kudu
Updated Branches:
  refs/heads/master b621f9c1a -> cfff4bb18


[DOCS] Added an info on creating a table in Impala with a custom replication 
factor

Change-Id: If1c9ee97497dd62ccc8769428435ba6d5adddae9
Reviewed-on: http://gerrit.cloudera.org:8080/10411
Tested-by: Kudu Jenkins
Reviewed-by: Mike Percy <mpe...@apache.org>


Project: http://git-wip-us.apache.org/repos/asf/kudu/repo
Commit: http://git-wip-us.apache.org/repos/asf/kudu/commit/cfff4bb1
Tree: http://git-wip-us.apache.org/repos/asf/kudu/tree/cfff4bb1
Diff: http://git-wip-us.apache.org/repos/asf/kudu/diff/cfff4bb1

Branch: refs/heads/master
Commit: cfff4bb180d3ef73725f9ae7bb46321ce1179f29
Parents: b621f9c
Author: Alex Rodoni <arod...@cloudera.com>
Authored: Tue May 15 11:46:22 2018 -0700
Committer: Mike Percy <mpe...@apache.org>
Committed: Thu May 17 21:30:31 2018 +0000

----------------------------------------------------------------------
 docs/kudu_impala_integration.adoc | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/kudu/blob/cfff4bb1/docs/kudu_impala_integration.adoc
----------------------------------------------------------------------
diff --git a/docs/kudu_impala_integration.adoc 
b/docs/kudu_impala_integration.adoc
index 2b2f3ec..f7768ee 100755
--- a/docs/kudu_impala_integration.adoc
+++ b/docs/kudu_impala_integration.adoc
@@ -143,6 +143,21 @@ See <<partitioning_tables>>. The table creation example 
above is distributed int
 16 partitions by hashing the `id` column, for simplicity. See
 <<partitioning_rules_of_thumb>> for guidelines on partitioning.
 
+By default, Kudu tables created through Impala use a tablet replication factor 
of 3.
+To specify the replication factor for a Kudu table, add a `TBLPROPERTIES` 
clause
+to the `CREATE TABLE` statement as shown below where n is the replication 
factor
+you want to use:
+
+[source,sql]
+----
+TBLPROPERTIES ('kudu.num_tablet_replicas' = 'n')
+----
+
+A replication factor must be an odd number.
+
+Changing the `kudu.num_tablet_replicas` table property using ALTER TABLE 
currently
+has no effect.
+
 ==== `CREATE TABLE AS SELECT`
 
 You can create a table by querying any other table or tables in Impala, using 
a `CREATE

Reply via email to