kbastani opened a new pull request #8024:
URL: https://github.com/apache/pinot/pull/8024


   ## Description
   
   Created a new Pinot quickstart command called `EmptyQuickstart`.
   
   The entire point of this command is that we previously had no quickstart 
that would save your data after a restart. This will be used to update the 
Homebrew formula so that users can run Pinot as a single component local 
service that will save your data/tables/schemas/segments after a restart. It 
can also be used for Docker when specifying a host volume data directory.
   
   See the Documentation section below for usage notes.
   
   ## Upgrade Notes
   Does this PR prevent a zero down-time upgrade? (Assume upgrade order: 
Controller, Broker, Server, Minion)
   * [ ] Yes (Please label as **<code>backward-incompat</code>**, and complete 
the section below on Release Notes)
   
   Does this PR fix a zero-downtime upgrade introduced earlier?
   * [ ] Yes (Please label this as **<code>backward-incompat</code>**, and 
complete the section below on Release Notes)
   
   Does this PR otherwise need attention when creating release notes? Things to 
consider:
   - New configuration options
   - Deprecation of configurations
   - Signature changes to public methods/interfaces
   - New plugins added or old plugins removed
   * [ ] Yes (Please label this PR as **<code>release-notes</code>** and 
complete the section on Release Notes)
   
   ## Documentation
   
   To launch a single component installation of Pinot that saves data after a 
restart, you can use the `EmptyQuickstart` command.
   
   - Allows a user to use an external or embedded Zookeeper instance 
(`-zkAddress`). 
    -- If no argument is provided, an embedded Zookeeper instance will be 
launched.
    -- When an argument is provided, no embedded Zookeeper instance will be 
launched and controller/broker/server will use the provided ZK URL.
   - Allows a user to specify a non-temporary data directory (`-dataDir`).
    -- If no argument is provided, a temporary data directory will be generated.
    -- When an argument is provided, embedded Zookeeper files are stored and 
reused on restart.
    -- When an argument is provided, Pinot controller/broker/server data files 
are stored and reused on restart.
   
   To start the quickstart command, run the following in your terminal.
   
   ```
   # Reuses the provided dataDir on restart but launches an embedded ZK instance
   $ bin/pinot-admin.sh QuickStart -type EMPTY -dataDir 
"/usr/local/var/lib/pinot/data"
   
   # Reuses the provided dataDir on restart and uses an external ZK instance
   $ bin/pinot-admin.sh QuickStart -type EMPTY -dataDir 
"/usr/local/var/lib/pinot/data" -zkAddress "localhost:2181"
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to