You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Robert Metzger (JIRA)" <ji...@apache.org> on 2016/04/18 11:29:25 UTC

[jira] [Commented] (FLINK-3726) Error while reading configuration: Cannot read property 0

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

Robert Metzger commented on FLINK-3726:
---------------------------------------

Hey Maxim,
sorry for the late response to this.
I'm not sure if this is a valid bug because the GlobalConfiguration class of Flink is not supposed to read Hadoop's XML configuration files.

A few years ago Flink was also using xml-based configuration files, which were using {{<key>}} and {{<value>}} tags. We then added support for YAML but kept the XML parser.
If you put Hadoop's xml files into the flink conf directory, our parser will try to read them.

> Error while reading configuration: Cannot read property 0
> ---------------------------------------------------------
>
>                 Key: FLINK-3726
>                 URL: https://issues.apache.org/jira/browse/FLINK-3726
>             Project: Flink
>          Issue Type: Bug
>          Components: Core
>    Affects Versions: 1.0.1
>            Reporter: Maxim Dobryakov
>
> *cat log/flink--jobmanager-0-example-app-1.example.local.log*
> {code}
> ...
> 2016-04-11 12:00:20,726 INFO  org.apache.flink.runtime.jobmanager.JobManager                - Loading configuration from /flink/conf
> 2016-04-11 12:00:20,737 WARN  org.apache.flink.configuration.GlobalConfiguration            - Error while reading configuration: Cannot read property 0
> 2016-04-11 12:00:20,738 DEBUG org.apache.flink.configuration.GlobalConfiguration            - Loading configuration property: jobmanager.heap.mb, 1024
> 2016-04-11 12:00:20,739 DEBUG org.apache.flink.configuration.GlobalConfiguration            - Loading configuration property: jobmanager.web.port, 8081
> ...
> {code}
> [This warning|https://github.com/apache/flink/blob/b8299bf92d8e3dbe140dd89602699394019b783d/flink-core/src/main/java/org/apache/flink/configuration/GlobalConfiguration.java#L378] appear because you try to [read property|https://github.com/apache/flink/blob/b8299bf92d8e3dbe140dd89602699394019b783d/flink-core/src/main/java/org/apache/flink/configuration/GlobalConfiguration.java#L349] from Hadoop `core-site.xml` use `key` tag instead of `name`.
> So, I think it can cause different compatibility problems between Flink and Hadoop.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)