关于flume使用SpoolDir监控目录传入文件时报出java.nio.charset.MalformedInputException: Input length = 1,个人解决方案
来源:互联网 发布:微信抢红包埋雷软件 编辑:程序博客网 时间:2024/05/20 21:23
不管在什么地方,什么时候,学习是快速提升自己的能力的一种体现!!!!!!!!!!!
今天测试flume框架时使用SpoolDir监控目录的形式启动了flume,传入文件时报出了如下错误:
java.nio.charset.MalformedInputException: Input length = 1
at java.nio.charset.CoderResult.throwException(CoderResult.java:281)
在网上也没有搜索到满意的答案,后面误打误撞就解决了,造成的原因可能是因为传入的文件编码格式不符合要求,比如隐藏了一些你看不到的字符,我的解决方案是把文件转成UTF-8无BOM格式,如果你转成无BOM格式之后出现了一些字符,把哪些字符删除重新启动flume再传改编码之后的文件就不会出现这样的错误了
阅读全文
0 0
- 关于flume使用SpoolDir监控目录传入文件时报出java.nio.charset.MalformedInputException: Input length = 1,个人解决方案
- flume报java.nio.charset.MalformedInputException: Input length = 1 解决方案
- java.nio.charset.MalformedInputException: Input length = 1
- java.nio.charset.MalformedInputException: Input length = 2 解决办法
- java NIO Exception in thread "main" java.nio.charset.MalformedInputException: Input length = 1
- JAVA学习5_Java NIO 报java.nio.charset.MalformedInputException: Input length = 1异常
- Exception in thread "main" java.nio.charset.MalformedInputException: Input length = 1
- 我的Java开发学习之旅------>Java NIO 报java.nio.charset.MalformedInputException: Input length = 1异常
- 部署服务器出现 java.nio.charset.MalformedInputException: Input length = 2
- Flume 监控目录文件 spooldir
- 读文件异常:java.nio.charset.MalformedInputException
- scala:java.nio.charset.MalformedInputException
- NIO中,java.nio.charset.MalformedInputException
- Flume-ng spoolDir分布式日志收集目录监控
- Flume-ng spoolDir目录监控踩过的坑
- flume监控spoolDir日志到HDFS整个流程小Demo
- flume监控spoolDir日志到HDFS整个流程小Demo
- flume监控目录文件到hdfs
- js基础-表达式
- Java LDAP操作
- mybatis使用技巧
- Property 'xxx' not found on type java.lang.String
- android事件处理,把事件通知到焦点窗口,(5)
- 关于flume使用SpoolDir监控目录传入文件时报出java.nio.charset.MalformedInputException: Input length = 1,个人解决方案
- linux 常用命令(二)
- oracle数据库failed_login_attempts
- uva 10375
- 选择完美域名的10个技巧
- .Net使用Mongodb增删改查演示
- 开启EL 与 JSTL 支持
- 护士岗前培训心得范文
- 分治法,动态规划及贪心算法区别