Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ksql-cli should be able to accept input from STDIN and a filename via an argument #380

Closed
tunderhill opened this issue Oct 16, 2017 · 3 comments

Comments

@tunderhill
Copy link

No description provided.

@tunderhill tunderhill changed the title ksql-cli should be able to accept input from STDIN and a named argument ksql-cli should be able to accept input from STDIN and an filename via an argument Oct 16, 2017
@tunderhill tunderhill changed the title ksql-cli should be able to accept input from STDIN and an filename via an argument ksql-cli should be able to accept input from STDIN and a filename via an argument Oct 16, 2017
@hjafarpour
Copy link
Contributor

hjafarpour commented Oct 22, 2017

@tunderhill KSQL already is able to do this.

  1. If you have a query file and you wanna run KSQL by passing the query file you can run the following command for each instance of your application:
$./bin/ksql-node /Users/hojjat/quickstart.sql

This will start the KSQL engine and run the statements in the given file.

  1. If you wanna just run a single statement you can run the following command:
$./bin/ksql-cli local --exec "SELECT * FROM PAGEVIEWS_ORIGINAL LIMIT 5;"

This will run the given statement and show the results in the terminal.

@miguno
Copy link
Contributor

miguno commented Oct 22, 2017

@hjafarpour We should add those examples to the Examples doc.

@tunderhill
Copy link
Author

Thanks @hjafarpour ksql-node works as you described.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants