4paradigm / 4paradigm/OpenMLDB

`select into` may fail if `HADOOP_CONF_DIR` or `YARN_CONF_DIR` env are accidentally configured

Ouverte
#2,772 1 commentaire 0 réactions 1 personne assignée Réclamée par @tobegit3hub Voir sur GitHub
bug wontfix
Langage dominant
C++
Étoiles
1.7k
Forks
331
Merge moyen
12 j 12 h
PR mergées (30 j)
1

Description

**Bug Description**
`select into outfile '/tmp/out.csv'` may fail if the `HADOOP_CONF_DIR` or `YARN_CONF_DIR` environmental variables are accidentally configured and its `defaultfs` is `hdfs`.

**Expected Behavior**
For `outfile '/tmp/out.csv'`, users expect to write into local filesystems.
Possible solutions may be:
- add Q&A to show the potential issue
- guide users to specify 'file:///tmp/out.csv' to avoid the confusion

**Steps to Reproduce**

1.
2.
3.
4.

Guide de contribution

Ouvrir le guide de contribution

Piste de recherche

Look at the code that handles 'select into outfile' parsing and path resolution, likely in the SQL engine or filesystem abstraction layer. Check how environment variables like HADOOP_CONF_DIR and YARN_CONF_DIR are read and how they affect the default filesystem. The fix may involve ensuring local file paths are not misinterpreted as HDFS, or improving error messages. Test by setting these environment variables and running a simple select into outfile command.

Rédigé par le modèle d'indexation à partir du texte de l'issue.

Évaluation

Stack technique
hadoop
Domaine
backend, cli, databases
Type d'issue
Bug
Difficulté
3/5
Temps estimé
1-2 jours
Activité
À l'abandon
Clarté
Plutôt claire
Accessibilité débutants
45/100

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.