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

warcannon queryAthena command doesn't exist #20

Open
agamm opened this issue Aug 14, 2023 · 11 comments
Open

warcannon queryAthena command doesn't exist #20

agamm opened this issue Aug 14, 2023 · 11 comments

Comments

@agamm
Copy link

agamm commented Aug 14, 2023

It is written in the docs but isn't implemented in the CLI.

@c6fc
Copy link
Owner

c6fc commented Aug 14, 2023 via email

@agamm
Copy link
Author

agamm commented Aug 14, 2023

Yeah but how can I create the execution id? from the docs it seems like it is part of the cli to use the SQL for athena.

I tried manually editing and running athena_query.sh but it's not working i'm getting things like:

[+] Populating athena with database ╷
│ Warning: No outputs found
│ 
│ The state file either has no outputs defined, or all the defined outputs are empty. Please define an output in your configuration
│ with the `output` keyword and run `terraform refresh` for it to become available. If you are using interpolation, please verify the
│ interpolated value is not empty. You can use the `terraform console` command to assist.
╵ and workgroup ╷
│ Warning: No outputs found

I also tried manually logging into Athena but there there is no s3 bucket connected either.

@c6fc
Copy link
Owner

c6fc commented Aug 14, 2023 via email

@agamm
Copy link
Author

agamm commented Aug 14, 2023

Use the console

On Mon, Aug 14, 2023, 11:07 AM Agam More @.> wrote: Yeah but how can I create the execution id? from the docs it seems like it is part of the cli to use the SQL for athena. — Reply to this email directly, view it on GitHub <#20 (comment)>, or unsubscribe https://github.com/notifications/unsubscribe-auth/AABDAN4FPFG6GNJR3WR6HK3XVJSN5ANCNFSM6AAAAAA3QATUE4 . You are receiving this because you commented.Message ID: @.>

I tried, as I've edited in the last comment, it wants me to connect an S3 Bucket, when I do create an s3 I get: TABLE_NOT_FOUND: line 1:91: Table 'awsdatacatalog.warcannon_commoncrawl.ccindex' does not exist

@c6fc
Copy link
Owner

c6fc commented Aug 14, 2023 via email

@agamm
Copy link
Author

agamm commented Aug 14, 2023

Thanks, but it still doesn't work (even after warcannon deploy -y and I even tried warcannon populate 2023-23

TABLE_NOT_FOUND: line 1:91: Table 'awsdatacatalog.warcannon_commoncrawl.ccindex' does not exist

@c6fc
Copy link
Owner

c6fc commented Aug 14, 2023 via email

@agamm
Copy link
Author

agamm commented Aug 14, 2023

Yes:
image

@c6fc
Copy link
Owner

c6fc commented Aug 14, 2023 via email

@agamm
Copy link
Author

agamm commented Aug 14, 2023

I think there isn't the table (if you look at the left bottom side). I'll try to create it manually.

EDIT:
I've created the table and partitioned it like in populate_athena.sh, and after running the query when I try to warcannon populateAthena myidhere I get:

 warcannon populateAthena 328a968f-283a-4ef5-9507-xxx
[*] Loading job. Please wait...
[+] Loader completed successfully. Received response:
{"errorType":"string","errorMessage":"No queryExecutionId specified. Use a payload like {\"queryExecutionId\": \"ed8488d3-df35-40dd-80cd-fbfe722dc7d3\"}","trace":[]}

@agamm
Copy link
Author

agamm commented Aug 17, 2023

@c6fc Did my last comment help?

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

2 participants