flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Zhiwen Sun (Jira)" <j...@apache.org>
Subject [jira] [Comment Edited] (FLINK-22786) sql-client can not create .flink-sql-history file
Date Mon, 31 May 2021 02:51:00 GMT

    [ https://issues.apache.org/jira/browse/FLINK-22786?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17354186#comment-17354186
] 

Zhiwen Sun edited comment on FLINK-22786 at 5/31/21, 2:50 AM:
--------------------------------------------------------------

Yes, I will create a PR about this bug.

Similar problem in following classes:
  
{code:java}
./flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/CliUtils.java

./flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/history/HistoryServer.java

./flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/history/HistoryServerArchiveFetcher.java

./flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/RocksDBStateDownloader.java

./flink-runtime/src/main/java/org/apache/flink/runtime/security/modules/JaasModule.java no

./flink-runtime/src/main/java/org/apache/flink/runtime/state/SnapshotDirectory.java 
./flink-runtime/src/main/java/org/apache/flink/runtime/blob/BlobUtils.java 
./flink-runtime/src/main/java/org/apache/flink/runtime/rest/FileUploadHandler.java 
./flink-runtime/src/main/java/org/apache/flink/runtime/rest/RestServerEndpoint.java no 

./flink-python/src/main/java/org/apache/flink/client/python/PythonEnvUtils.java 
./flink-core/src/main/java/org/apache/flink/util/FileUtils.java no 
./flink-clients/src/main/java/org/apache/flink/client/program/PackagedProgramUtils.java 
./flink-yarn/src/main/java/org/apache/flink/yarn/YarnApplicationFileUploader.java 
./flink-runtime/src/main/java/org/apache/flink/runtime/clusterframework/overlays/AbstractContainerOverlay.java

./flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/FileUploads.java no{code}
 
  

I setup my IDEA recently :(


was (Author: pensz):
Yes, I will create a PR about this bug.

Similar problem in following classes:
 
{code:java}
./flink-table/flink-sql-client/src/main/java/org/apache/flink/table/client/cli/CliUtils.java
./flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/history/HistoryServer.java
./flink-runtime-web/src/main/java/org/apache/flink/runtime/webmonitor/history/HistoryServerArchiveFetcher.java
./flink-state-backends/flink-statebackend-rocksdb/src/main/java/org/apache/flink/contrib/streaming/state/RocksDBStateDownloader.java
./flink-runtime/src/main/java/org/apache/flink/runtime/security/modules/JaasModule.java no
./flink-runtime/src/main/java/org/apache/flink/runtime/state/SnapshotDirectory.java ./flink-runtime/src/main/java/org/apache/flink/runtime/blob/BlobUtils.java
./flink-runtime/src/main/java/org/apache/flink/runtime/rest/FileUploadHandler.java ./flink-runtime/src/main/java/org/apache/flink/runtime/rest/RestServerEndpoint.java
no 

 ./flink-python/src/main/java/org/apache/flink/client/python/PythonEnvUtils.java ./flink-core/src/main/java/org/apache/flink/util/FileUtils.java
no ./flink-clients/src/main/java/org/apache/flink/client/program/PackagedProgramUtils.java
./flink-yarn/src/main/java/org/apache/flink/yarn/YarnApplicationFileUploader.java ./flink-runtime/src/main/java/org/apache/flink/runtime/clusterframework/overlays/AbstractContainerOverlay.java
./flink-runtime/src/main/java/org/apache/flink/runtime/rest/handler/FileUploads.java no{code}
 
 

I setup my IDEA recently :(

> sql-client can not create .flink-sql-history file
> -------------------------------------------------
>
>                 Key: FLINK-22786
>                 URL: https://issues.apache.org/jira/browse/FLINK-22786
>             Project: Flink
>          Issue Type: Bug
>          Components: Table SQL / Client
>    Affects Versions: 1.12.2
>            Reporter: Zhiwen Sun
>            Priority: Major
>
> When I run sql-client.sh, I find a warning 
> Unable to create history file: /home/www/.flink-sql-history 
> In fact, the user I used have permission to write /home/www/.
> After debug sql-client.sh. I think this is a bug in org.apache.flink.table.client.cli.CliUtils#createFile
> Files.notExists(parent) should be run before Files.createDirectories(parent) .



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Mime
View raw message