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

BUG: Worker nodes are given incorrect credentials from SQLAlchemy object URL #6952

Closed
3 tasks done
tochigiv opened this issue Feb 21, 2024 · 0 comments · Fixed by #6953
Closed
3 tasks done

BUG: Worker nodes are given incorrect credentials from SQLAlchemy object URL #6952

tochigiv opened this issue Feb 21, 2024 · 0 comments · Fixed by #6953
Labels
bug 🦗 Something isn't working Triage 🩹 Issues that need triage

Comments

@tochigiv
Copy link
Contributor

Modin version checks

  • I have checked that this issue has not already been reported.

  • I have confirmed this bug exists on the latest released version of Modin.

  • I have confirmed this bug exists on the main branch of Modin. (In order to do this you can follow this guide.)

Reproducible Example

import modin.pandas as pd
import sqlalchemy as db
import ray

password = '...'
engine = db.create_engine(f'mysql://root:{password}@localhost:3306/test')

ray.init()

df = pd.DataFrame({
    'account-start': ['2017-02-03', '2017-03-03', '2017-01-01'],
    'client': ['Alice Anders', 'Bob Baker', 'Charlie Chaplin'],
    'balance': [-1432.32, 10.43, 30000.00],
    'db-id': [1234, 2424, 251],
    'proxy-id': [525, 1525, 2542],
    'rank': [52, 525, 32],
})

with engine.begin() as conn:
    df.to_sql('abc', conn, schema='test', if_exists='replace', index=False)

Issue Description

The Ray worker nodes are unable to connect to the database as they are not getting the correct credentials.

Expected Behavior

The contents of the DataFrame should be written to the table "abc."

Error Logs

OperationalError: (MySQLdb.OperationalError) (1045, "Access denied for user 'root'@'localhost' (using password: YES)")
(Background on this error at: https://sqlalche.me/e/20/e3q8)

Installed Versions

INSTALLED VERSIONS

commit : 4704751
python : 3.10.13.final.0
python-bits : 64
OS : Darwin
OS-release : 23.3.0
Version : Darwin Kernel Version 23.3.0: Wed Dec 20 21:30:44 PST 2023; root:xnu-10002.81.5~7/RELEASE_ARM64_T6000
machine : arm64
processor : arm
byteorder : little
LC_ALL : None
LANG : None
LOCALE : None.UTF-8

Modin dependencies

modin : 0.27.0+8.g4704751c
ray : 2.9.2
dask : 2024.2.0
distributed : 2024.2.0
hdk : None

pandas dependencies

pandas : 2.2.0
numpy : 1.26.4
pytz : 2024.1
dateutil : 2.8.2
setuptools : 68.2.2
pip : 24.0
Cython : None
pytest : 8.0.1
hypothesis : None
sphinx : 7.2.6
blosc : None
feather : None
xlsxwriter : None
lxml.etree : 5.1.0
html5lib : None
pymysql : None
psycopg2 : 2.9.9
jinja2 : 3.1.3
IPython : 8.21.0
pandas_datareader : None
adbc-driver-postgresql: None
adbc-driver-sqlite : None
bs4 : 4.12.3
bottleneck : None
dataframe-api-compat : None
fastparquet : 2024.2.0
fsspec : 2024.2.0
gcsfs : None
matplotlib : 3.8.3
numba : None
numexpr : 2.8.4
odfpy : None
openpyxl : 3.1.2
pandas_gbq : 0.21.0
pyarrow : 15.0.0
pyreadstat : None
python-calamine : None
pyxlsb : None
s3fs : 2024.2.0
scipy : 1.12.0
sqlalchemy : 2.0.27
tables : 3.9.2
tabulate : None
xarray : 2024.2.0
xlrd : 2.0.1
zstandard : None
tzdata : 2024.1
qtpy : None
pyqt5 : None

@tochigiv tochigiv added bug 🦗 Something isn't working Triage 🩹 Issues that need triage labels Feb 21, 2024
tochigiv added a commit to tochigiv/modin that referenced this issue Feb 22, 2024
…ne url (modin-project#6953)

Signed-off-by: Bailey Brownie <bailey.brownie60@gmail.com>
tochigiv added a commit to tochigiv/modin that referenced this issue Feb 22, 2024
…ne url (modin-project#6953)

Signed-off-by: Bailey Brownie <bailey.brownie60@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug 🦗 Something isn't working Triage 🩹 Issues that need triage
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant