[
https://issues.apache.org/jira/browse/FLUME-1558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13458138#comment-13458138
]
Brock Noland commented on FLUME-1558:
-------------------------------------
The password for a key is incorrect:
{noformat}
Due to java.lang.RuntimeException: java.security.UnrecoverableKeyException:
Given final block not properly padded. Key = key-0, passwordFile =
/data/flume/conf/test.keystore.password
at
org.apache.flume.channel.file.FileChannel.createTransaction(FileChannel.java:322)
at
org.apache.flume.channel.BasicChannelSemantics.getTransaction(BasicChannelSemantics.java:118)
at org.apache.flume.sink.LoggerSink.process(LoggerSink.java:61)
at
org.apache.flume.sink.DefaultSinkProcessor.process(DefaultSinkProcessor.java:68)
at org.apache.flume.SinkRunner$PollingRunner.run(SinkRunner.java:147)
at java.lang.Thread.run(Thread.java:662)
Caused by: java.lang.RuntimeException: java.security.UnrecoverableKeyException:
Given final block not properly padded. Key = key-0, passwordFile =
/data/flume/conf/test.keystore.password
at
org.apache.flume.channel.file.encryption.JCEFileKeyProvider.getKey(JCEFileKeyProvider.java:82)
at org.apache.flume.channel.file.Log.<init>(Log.java:244)
at org.apache.flume.channel.file.Log.<init>(Log.java:66)
at org.apache.flume.channel.file.Log$Builder.build(Log.java:189)
at org.apache.flume.channel.file.FileChannel.start(FileChannel.java:271)
at
org.apache.flume.lifecycle.LifecycleSupervisor$MonitorRunnable.run(LifecycleSupervisor.java:236)
at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
at
java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
at
java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
... 1 more
Caused by: java.security.UnrecoverableKeyException: Given final block not
properly padded
at com.sun.crypto.provider.SunJCE_z.a(DashoA13*..)
at com.sun.crypto.provider.JceKeyStore.engineGetKey(DashoA13*..)
at java.security.KeyStore.getKey(KeyStore.java:763)
at
org.apache.flume.channel.file.encryption.JCEFileKeyProvider.getKey(JCEFileKeyProvider.java:74)
... 14 more
{noformat}
> FileChannel Document errors when various Encryption options are not specified
> or specified bad
> ----------------------------------------------------------------------------------------------
>
> Key: FLUME-1558
> URL: https://issues.apache.org/jira/browse/FLUME-1558
> Project: Flume
> Issue Type: Improvement
> Components: Docs
> Reporter: Brock Noland
> Priority: Minor
>
> Encryption errors are notoriously bad. We should document what happens when
> you don't specified the various file channel encryption options correctly.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira