slingdata-io / sling-cli

Sling is a CLI tool that extracts data from a source storage/database and loads it in a target storage/database.
https://docs.slingdata.io
GNU General Public License v3.0
429 stars 35 forks source link

I installed Sling 1.1.2 but I get a message that there is 1.1.3 available. Can't upgrade to 1.1.3 via brew. #142

Closed alberttwong closed 8 months ago

alberttwong commented 8 months ago
atwong@Albert-CelerData test_db % sling run --src-conn MYSQLLOCAL --src-stream employees.employees --tgt-conn STARROCKSLOCAL --tgt-object albert.employees --primary-key emp_no
4:50PM INF connecting to source database (mysql)
4:50PM INF connecting to target database (starrocks)
4:50PM INF reading from source database
4:50PM INF writing to target database [mode: full-refresh]
4:50PM INF streaming data
3m17s 299,700 1535 r/s
4:53PM INF execution failed
FYI there is a new sling version released (1.1.3). Please run `brew upgrade slingdata-io/sling/sling`.
fatal:
~
~ failure running task (see docs @ https://docs.slingdata.io/sling-cli)
~
~ execution failed
~ Could not WriteToDb
inserted in temp table but table count (324) != stream count (300024). Records missing. Aborting
atwong@Albert-CelerData test_db % brew upgrade sling
==> Downloading https://formulae.brew.sh/api/formula.jws.json
#################################################################################################################################### 100.0%
==> Downloading https://formulae.brew.sh/api/cask.jws.json
#################################################################################################################################### 100.0%
Warning: slingdata-io/sling/sling 1.1.2 already installed
atwong@Albert-CelerData test_db % brew upgrade sling
Warning: slingdata-io/sling/sling 1.1.2 already installed
atwong@Albert-CelerData test_db % brew upgrade slingdata-io/sling/sling
Warning: slingdata-io/sling/sling 1.1.2 already installed
atwong@Albert-CelerData test_db % brew reinstall slingdata-io/sling/sling
==> Fetching slingdata-io/sling/sling
==> Downloading https://github.com/slingdata-io/sling-cli/releases/download/v1.1.2/sling_darwin_arm64.tar.gz
Already downloaded: /Users/atwong/Library/Caches/Homebrew/downloads/c2f69b27088c137a9d817e2f195ce7277868d75d3145771c650216eae1df1878--sling_darwin_arm64.tar.gz
==> Reinstalling slingdata-io/sling/sling
🍺  /opt/homebrew/Cellar/sling/1.1.2: 5 files, 95.5MB, built in 1 second
==> Running `brew cleanup sling`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
flarco commented 8 months ago

Can you try brew update then brew upgrade slingdata-io/sling/sling? I was having docker issues for arm64 compiling, so had to release multiple times. The releases were uploaded in short succession, so your brew doesn't know about the latest release.

alberttwong commented 8 months ago

works!

atwong@Albert-CelerData ~ % brew update
==> Updated Homebrew from 88283bd43 to 4dca2ed34.
Updated 2 taps (slingdata-io/sling and homebrew/cask-versions).
==> Outdated Formulae
abseil                     boost                      fontconfig                 glib                       jq                         libidn2                    libxcb                     n                          openssl@1.1                python-markupsafe
apache-spark               cairo                      freetype                   gradle                     jupyterlab                 libpng                     little-cms2                oniguruma                  protobuf                   ruff
autoconf                   coursier                   gettext                    harfbuzz                   kubernetes-cli             librdkafka                 lzlib                      openjdk                    pydocstyle                 sling
avro-c                     duckdb                     gh                         helm                       libcbor                    libtiff                    maven                      openjdk@11                 pyenv                      terraform
aws-iam-authenticator      eksctl                     git-lfs                    jpeg-turbo                 libfido2                   libx11                     mc                         openjdk@17                 python-certifi
==> Outdated Casks
1password-cli                                                      ngrok                                                              temurin                                                            temurin8

You have 49 outdated formulae and 4 outdated casks installed.
You can upgrade them with brew upgrade
or list them with brew outdated.
atwong@Albert-CelerData ~ % brew upgrade slingdata-io/sling/sling
==> Upgrading 1 outdated package:
slingdata-io/sling/sling 1.1.2 -> 1.1.3
==> Fetching slingdata-io/sling/sling
==> Downloading https://github.com/slingdata-io/sling-cli/releases/download/v1.1.3/sling_darwin_arm64.tar.gz
==> Downloading from https://objects.githubusercontent.com/github-production-release-asset-2e65be/304285216/2cdd4451-477f-4897-812d-c7a0cd4067bd?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=AKIAVCODYLSA53PQK4ZA%2F20240208%2Fus-east-1%2Fs3%2Faws4_request&X-Amz-Date
######################################################################################################################################################################################################################################################### 100.0%
==> Upgrading slingdata-io/sling/sling
  1.1.2 -> 1.1.3

🍺  /opt/homebrew/Cellar/sling/1.1.3: 5 files, 95.5MB, built in 2 seconds
==> Running `brew cleanup sling`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /opt/homebrew/Cellar/sling/1.1.2... (5 files, 95.5MB)
Removing: /Users/atwong/Library/Caches/Homebrew/sling--1.1.2.tar.gz... (41.1MB)