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

When run e2e test met the error "Could not create execution context" #99

Open
JaneGuoS opened this issue Jul 21, 2022 · 1 comment
Open

Comments

@JaneGuoS
Copy link

When run the test with the command " FLINK_HOME=/mnt/c/gjy/software/flink-1.11.6 SQL_GATEWAY_HOME=/mnt/c/gjy/software/flink-sql-gateway-flink-1.11.1/build-target ./run-tests.sh",

met the error
Request to http://localhost:8083/v1/sessions returns an error.
Request Method: POST
Request Body: {
"planner": "blink",
"execution_type": "batch"
}
Internal server error.
<Exception on server side:
com.ververica.flink.table.gateway.utils.SqlExecutionException: Could not create execution context.
at com.ververica.flink.table.gateway.context.ExecutionContext$Builder.build(ExecutionContext.java:713)
at com.ververica.flink.table.gateway.context.SessionContext.(SessionContext.java:47)
at com.ververica.flink.table.gateway.rest.session.SessionManager.createSession(SessionManager.java:119)
at com.ververica.flink.table.gateway.rest.handler.SessionCreateHandler.handleRequest(SessionCreateHandler.java:100)

Use the default configuration sql-gateway-defaults.yaml and e2e-tests/data/test-config.yaml, neither works

@smm321
Copy link

smm321 commented Oct 18, 2022

It seems that something wrong when SessionContext init ExecutionContext. Have you set flink lib dir?

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