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

Adapt playground to M1 mac #3488

Closed
6 tasks
vdesabou opened this issue Mar 5, 2023 · 3 comments
Closed
6 tasks

Adapt playground to M1 mac #3488

vdesabou opened this issue Mar 5, 2023 · 3 comments
Assignees
Labels
enhancement ✨ New feature or request

Comments

@vdesabou
Copy link
Owner

vdesabou commented Mar 5, 2023

@vdesabou vdesabou added the enhancement ✨ New feature or request label Mar 5, 2023
@vdesabou vdesabou self-assigned this Mar 5, 2023
vdesabou added a commit that referenced this issue Mar 5, 2023
vdesabou added a commit that referenced this issue Mar 5, 2023
@vdesabou
Copy link
Owner Author

vdesabou commented Mar 5, 2023

For sqlserver:

  sqlserver:
    image: mcr.microsoft.com/azure-sql-edge
    hostname: sqlserver
    container_name: sqlserver
    ports:
      - "1433:1433"
    environment:
      ACCEPT_EULA: "1"
      MSSQL_AGENT_ENABLED: "true"
      MSSQL_PID: "Developer"
      MSSQL_SA_PASSWORD: "Password!"
docker exec -i sqlserver bash << EOF
mkdir -p /opt/mssql-tools/bin && cd /opt/mssql-tools/bin && wget https://github.com/microsoft/go-sqlcmd/releases/download/v0.8.0/sqlcmd-v0.8.0-linux-arm64.tar.bz2 && bzip2 -d sqlcmd-v0.8.0-linux-arm64.tar.bz2 && tar -xvf sqlcmd-v0.8.0-linux-arm64.tar && chmod 755 sqlcmd
EOF

log "Create table"
docker exec -e SQLCMDPASSWORD='Password!' -i sqlserver /opt/mssql-tools/bin/sqlcmd -U sa << EOF

EXEC sp_configure 'clr enabled', 1;  
RECONFIGURE;  
GO 
[2023-03-05 20:12:57,803] WARN [debezium-sqlserver-source|task-0] WorkerSourceTask{id=debezium-sqlserver-source-0} failed to poll records from SourceTask. Will retry operation. (org.apache.kafka.connect.runtime.AbstractWorkerSourceTask:472)
org.apache.kafka.connect.errors.RetriableException: An exception occurred in the change event producer. This connector will be restarted.
        at io.debezium.pipeline.ErrorHandler.setProducerThrowable(ErrorHandler.java:49)
        at io.debezium.connector.sqlserver.SqlServerStreamingChangeEventSource.executeIteration(SqlServerStreamingChangeEventSource.java:333)
        at io.debezium.connector.sqlserver.SqlServerStreamingChangeEventSource.executeIteration(SqlServerStreamingChangeEventSource.java:60)
        at io.debezium.connector.sqlserver.SqlServerChangeEventSourceCoordinator.executeChangeEventSources(SqlServerChangeEventSourceCoordinator.java:98)
        at io.debezium.pipeline.ChangeEventSourceCoordinator.lambda$start$0(ChangeEventSourceCoordinator.java:109)
        at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:515)
        at java.base/java.util.concurrent.FutureTask.run(FutureTask.java:264)
        at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
        at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
        at java.base/java.lang.Thread.run(Thread.java:829)
Caused by: com.microsoft.sqlserver.jdbc.SQLServerException: Common Language Runtime(CLR) is not enabled on this instance.
        at com.microsoft.sqlserver.jdbc.SQLServerException.makeFromDatabaseError(SQLServerException.java:265)
        at com.microsoft.sqlserver.jdbc.SQLServerStatement.getNextResult(SQLServerStatement.java:1676)
        at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.doExecutePreparedStatement(SQLServerPreparedStatement.java:615)
        at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement$PrepStmtExecCmd.doExecute(SQLServerPreparedStatement.java:537)
        at com.microsoft.sqlserver.jdbc.TDSCommand.execute(IOBuffer.java:7730)
        at com.microsoft.sqlserver.jdbc.SQLServerConnection.executeCommand(SQLServerConnection.java:3786)
        at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeCommand(SQLServerStatement.java:268)
        at com.microsoft.sqlserver.jdbc.SQLServerStatement.executeStatement(SQLServerStatement.java:242)
        at com.microsoft.sqlserver.jdbc.SQLServerPreparedStatement.executeQuery(SQLServerPreparedStatement.java:456)
        at io.debezium.jdbc.JdbcConnection.prepareQueryAndMap(JdbcConnection.java:735)
        at io.debezium.connector.sqlserver.SqlServerConnection.incrementLsn(SqlServerConnection.java:352)
        at io.debezium.connector.sqlserver.SqlServerStreamingChangeEventSource.executeIteration(SqlServerStreamingChangeEventSource.java:190)
        ... 8 more

--> https://dba.stackexchange.com/a/307209

vdesabou added a commit that referenced this issue Mar 5, 2023
vdesabou added a commit that referenced this issue Mar 5, 2023
vdesabou added a commit that referenced this issue Mar 5, 2023
vdesabou added a commit that referenced this issue Mar 5, 2023
vdesabou added a commit that referenced this issue Mar 6, 2023
vdesabou added a commit that referenced this issue Mar 6, 2023
vdesabou added a commit that referenced this issue Mar 6, 2023
vdesabou added a commit that referenced this issue Mar 6, 2023
@vdesabou
Copy link
Owner Author

vdesabou commented Mar 6, 2023

vdesabou added a commit that referenced this issue Mar 6, 2023
vdesabou added a commit that referenced this issue Mar 6, 2023
vdesabou added a commit that referenced this issue Mar 6, 2023
vdesabou added a commit that referenced this issue Mar 6, 2023
vdesabou added a commit that referenced this issue Mar 6, 2023
vdesabou added a commit that referenced this issue Mar 7, 2023
vdesabou added a commit that referenced this issue Mar 7, 2023
vdesabou added a commit that referenced this issue Mar 7, 2023
vdesabou added a commit that referenced this issue Mar 7, 2023
vdesabou added a commit that referenced this issue Mar 7, 2023
vdesabou added a commit that referenced this issue Mar 7, 2023
@vdesabou
Copy link
Owner Author

vdesabou commented Mar 9, 2023

@vdesabou vdesabou closed this as completed Mar 9, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement ✨ New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant