源码之家

  • 首页
  • 文章
  • 问答
  • 下载
您的位置: 首页  >  文章  >  flume报java.nio.charset.MalformedInputException: Input length = 1 解决方案

flume报java.nio.charset.MalformedInputException: Input length = 1 解决方案

分类: 文章 • 2023-10-16 13:00:41


Flume读取文件的过程中,遇到了如下的错误:

flume报java.nio.charset.MalformedInputException: Input length = 1 解决方案


问题原因:source组件的属性 inputCharset 默认的是 UTF-8, 但实际读取的文件类型是 ANSI(GBK)。

解决方案:a1.sources.r2.inputCharset = GBK  //将 inputCharset 设置为 GBK 即可。



相关推荐

  • java.nio.charset.MalformedInputException: Input length = 1 mybatis绑定失败(主要有两个原因)
  • java -jar启动jar包报错:YAMLException: java.nio.charset.MalformedInputException: Input length = 1
  • IDEA启动报错java.nio.charset.MalformedInputException: Input length=2的解决方案
  • org.yaml.snakeyaml.error.YAMLException: java.nio.charset.MalformedInputException: Input length = 1报错
  • Springboot项目运行报错:Caused by: java.nio.charset.MalformedInputException: Input length = 1
  • Exception in thread "main" java.nio.charset.MalformedInputException: Input length = 1
  • java.nio.charset.MalformedInputException: Input length = 1异常
  • java.nio.charset.MalformedInputException: Input length = 1
  • Caused by: java.nio.charset.MalformedInputException: Input length = 1
  • maven java.nio.charset.MalformedInputException: Input length = 1
  • jeecg下实现自动默认模糊查询
  • mysql常用的函数--group_concat
    网站免责声明 网站地图 最新文章 用户隐私 版权申明
本站所有数据收集于网络,如果侵犯到您的权益,请联系网站进行下架处理。   

Copyright © 2018-2021   Powered By 源码之家    备案号:   粤ICP备20058927号