You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@druid.apache.org by "zoov-w (via GitHub)" <gi...@apache.org> on 2023/05/23 12:10:59 UTC

[GitHub] [druid] zoov-w opened a new pull request, #14331: write factory.json file use utf-8

zoov-w opened a new pull request, #14331:
URL: https://github.com/apache/druid/pull/14331

   ### Description
   when I use Hadoop ingestion, some hadoop cluster node did not set system encoding as utf-8, resulting in the following content for factory.json:
    :)
   ^Eú<83>typeQmMapSegmentFactoryû
   
   fix this issue by setting write encoding of file.
   
   This PR has:
   
   - [ ] been self-reviewed.
   - [ ] added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
   - [ ] been tested in a test Druid cluster.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


Re: [PR] write factory.json use utf-8 (druid)

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] closed pull request #14331: write factory.json use utf-8
URL: https://github.com/apache/druid/pull/14331


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


Re: [PR] write factory.json use utf-8 (druid)

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #14331:
URL: https://github.com/apache/druid/pull/14331#issuecomment-1989680308

   This pull request/issue has been closed due to lack of activity. If you think that
   is incorrect, or the pull request requires review, you can revive the PR at any time.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


[GitHub] [druid] gianm commented on pull request #14331: write factory.json use utf-8

Posted by "gianm (via GitHub)" <gi...@apache.org>.
gianm commented on PR #14331:
URL: https://github.com/apache/druid/pull/14331#issuecomment-1560343492

   hmm, I'm confused about why this mattered. In Jackson `ObjectMapper`, when we do `writeValue` on an `OutputStream`, it uses UTF-8. Here is the code from Jackson:
   
   ```java
       public void writeValue(OutputStream out, Object value)
           throws IOException, JsonGenerationException, JsonMappingException
       {
           _configAndWriteValue(_jsonFactory.createJsonGenerator(out, JsonEncoding.UTF8), value);
       }
   ```
   
   In your case, was this defeated somehow?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org


Re: [PR] write factory.json use utf-8 (druid)

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on PR #14331:
URL: https://github.com/apache/druid/pull/14331#issuecomment-1937927818

   This pull request has been marked as stale due to 60 days of inactivity.
   It will be closed in 4 weeks if no further activity occurs. If you think
   that's incorrect or this pull request should instead be reviewed, please simply
   write any comment. Even if closed, you can still revive the PR at any time or
   discuss it on the dev@druid.apache.org list.
   Thank you for your contributions.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@druid.apache.org
For additional commands, e-mail: commits-help@druid.apache.org