blob: d9461c0658025ada766e1324acf563606bbf67e9 [file] [log] [blame]
---
title: Quickstart using Bash scripts
layout: default
active_nav: docs
last_updated: 'Last updated 2025-06-17 15:06:34 -0700'
---
<!--
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->
<div class="container">
<div class="row">
<div class="col-md-9">
<h1>Quickstart using Bash scripts</h1>
<div id="preamble">
<div class="sectionbody">
<div class="paragraph">
<p>Create, start, and stop Kudu cluster using shell scripts</p>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_start_kudu_cluster">Start Kudu cluster</h2>
<div class="sectionbody">
<div class="paragraph">
<p>Create and start Kudu cluster with one master and three tablet servers</p>
</div>
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-bash" data-lang="bash">cd build/latest
../../src/kudu/scripts/start_kudu.sh</code></pre>
</div>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_check_kudu_master_server_web_interface">Check Kudu master server web interface</h2>
<div class="sectionbody">
<div class="paragraph">
<p>Open in browser: <a href="http://localhost:8765/" class="bare">http://localhost:8765/</a></p>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_generate_and_load_some_data_into_kudu">Generate and load some data into Kudu</h2>
<div class="sectionbody">
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-bash" data-lang="bash">./bin/kudu perf loadgen 127.0.0.1:8764 --keep_auto_table=true --num_rows_per_thread=100000 --run_scan=true</code></pre>
</div>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_query_kudu_servers">Query Kudu servers</h2>
<div class="sectionbody">
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-bash" data-lang="bash">./bin/kudu master get_flags 127.0.0.1:8764
./bin/kudu tserver get_flags 127.0.0.1:9870</code></pre>
</div>
</div>
</div>
</div>
<div class="sect1">
<h2 id="_stop_kudu_cluster">Stop Kudu cluster</h2>
<div class="sectionbody">
<div class="listingblock">
<div class="content">
<pre class="highlight"><code class="language-bash" data-lang="bash">../../src/kudu/scripts/stop_kudu.sh</code></pre>
</div>
</div>
</div>
</div>
</div>
<div class="col-md-3">
</div>
</div>
</div>