user
01/24/2022, 10:32 PMlakectl dbt create-branch-schemauser
01/24/2022, 10:33 PMlakectl dbt create-branch-schema --branch my_branch --log-level DEBUG --log-output log.loguser
01/24/2022, 10:33 PMuser
01/24/2022, 10:33 PMuser
01/24/2022, 10:44 PMuser
01/24/2022, 10:45 PMtime="2022-01-24T17:26:03-05:00" level=debug msg="loaded configuration from file" func=<http://github.com/treeverse/lakefs/cmd/lakectl/cmd.glob..func68|github.com/treeverse/lakefs/cmd/lakectl/cmd.glob..func68> file="/home/runner/work/lakeFS/lakeFS/cmd/lakectl/cmd/root.go:67" fields.file=/Users/verun.rahimtoola/.lakectl.yaml file="/home/runner/work/lakeFS/lakeFS/cmd/lakectl/cmd/root.go:67"user
01/24/2022, 10:46 PM.lakectl.yaml file just now and the db_location_uri seems to be clearly wronguser
01/24/2022, 10:46 PMserver.endpoint_url is definitely correctuser
01/24/2022, 11:02 PMuser
01/24/2022, 11:15 PMuser
01/25/2022, 4:05 PM<secret access key>, <access key id> and <endpoint url> are definitely correctuser
01/25/2022, 4:07 PMuser
01/25/2022, 4:22 PMuser
01/25/2022, 4:58 PMmetastore:
type: hive
hive:
uri: <thrift://hive-metastore:9083>
and hive uri must be configured with the correct hive metastore URI.
You should run the command from the root of the dbt project, or set it by using the flag --project-root.
Also, to be sure, is there any error printed to the lakectl output?user
01/25/2022, 8:02 PM~/.lakectl.yaml file to have the metastore section as you’ve shownuser
01/25/2022, 8:02 PMuser
01/25/2022, 8:02 PMstrace to hunt for clues and i know that it does invoke the dbt command… and that is the command that’s failinguser
01/25/2022, 8:15 PMdbt set up is brokenuser
01/25/2022, 8:16 PMdbt directly either… i’ll fix that and return to this issueuser
01/25/2022, 8:20 PMuser
01/26/2022, 6:19 PMuser
01/26/2022, 6:56 PMuser
01/26/2022, 7:00 PMuser
01/26/2022, 7:11 PMuser
01/27/2022, 8:25 PMlakectl and dbt working properly (individually)… and now when i invoke the command, this is the output:
bash-4.2# lakectl dbt create-branch-schema --branch verun_test --continue-on-error --skip-views --log-level DEBUG
DEBU[0000]/home/runner/work/lakeFS/lakeFS/cmd/lakectl/cmd/root.go:67 <http://github.com/treeverse/lakefs/cmd/lakectl/cmd.glob..func68()|github.com/treeverse/lakefs/cmd/lakectl/cmd.glob..func68()> loaded configuration from file fields.file=/root/.lakectl.yaml file=/root/.lakectl.yaml
dbt debug succeeded with schema dbt_msk
EOF
Error executing command.user
01/27/2022, 8:26 PMlakectl logs to?user
01/27/2022, 8:27 PMuri in the metastore section needs to be set without the thrift:// protocol prefix, otherwise a “too many colons” error resultsuser
01/27/2022, 8:29 PMEOF error so it’s definitely doing more work this time than it was…user
01/27/2022, 8:29 PMlakectl version i’m using is: 0.57.2 and dbt version is: 0.19.2user
01/27/2022, 8:49 PMuser
01/27/2022, 8:49 PMdbt_project.yml file is at the base directory, and all our models etc are defined in sub-directories under a src/ directoryuser
01/27/2022, 8:50 PMlakectl from within the src directory (ie, one level below where the dbt_project.yml file lives)user
01/27/2022, 8:58 PM--project-root with the relevant root directory?user
01/27/2022, 9:39 PMdbt_project.yml file lives?user
01/27/2022, 9:40 PMuser
01/27/2022, 9:41 PMEOFuser
01/27/2022, 10:19 PMuser
01/27/2022, 10:24 PMuser
01/27/2022, 10:39 PMverun_test in lakeFS?
And what is the location of dbt_msk schema?user
01/27/2022, 10:41 PMverun_test already, but I'm actually not sure what the location of dbt_msk schema is.
can you clarify what assumptions the command makes, for its proper execution?user
01/27/2022, 10:52 PMuser
01/27/2022, 10:56 PM<lakefs://some-repo/main/> .
After that run dbt, and then run the current command of lakectl dbt create-branch-schema --branch verun_test --continue-on-error --skip-views --log-level DEBUGuser
01/27/2022, 10:58 PMuser
01/27/2022, 10:58 PMuser
01/27/2022, 11:06 PMuser
01/27/2022, 11:06 PMuser
01/27/2022, 11:06 PMuser
01/27/2022, 11:07 PMCan you run SHOW CREATE TABLE dbt_msk with spark sql?
yes!
user
01/27/2022, 11:07 PMuser
01/27/2022, 11:11 PMuser
01/27/2022, 11:12 PMuser
01/27/2022, 11:13 PMuser
01/27/2022, 11:18 PM