Details
-
Bug
-
Status: Open
-
Minor
-
Resolution: Unresolved
-
Impala 2.2.7
-
None
-
None
Description
I tried to run bin/start-impala-cluster.py and got the following error, repeated every second until timeout:
Error starting cluster: Expecting property name: line 72 column 19 (char 2264)
The error message contains no details about where it expects a property name, but I managed to track it down to tests/common/impala_service.py trying to parse http://localhost:25000/jsonmetrics?json, which contained:
70 "statestore-subscriber.heartbeat-interval-time": {
71 "count": 14,
72 "last": 1,00036,
The number in line 72 uses a comma as the decimal separator, but the start script expects a dot. The reason for this is that I had LC_NUMERIC=hu_HU.UTF-8 set in my enviroment. It seems that the JSON metrics page respects the locale, while the start script ignores it.
Possible solutions:
- Ignore the locale on the metrics JSON page.
- Respect the locale in the start script when parsing the JSON. (This is probably not feasible, as a comma can not act both as a decimal separator and as an item separator at the same time, so the JSON page in its current form in unparseable.)
- Set the locale to en_US.UTF-8 as a first step in every script.
- (Additionally improve error handling in impala_service.py by making error reporting more verbose.)
Attachments
Issue Links
- is duplicated by
-
IMPALA-2014 rapidjson can produce invalid json metrics if locale is changed
- Resolved