java.lang.IllegalArgumentException: Directory may not be nullnull

Apache's JIRA Issue Tracker | Alexander Alten-Lorenz | 5 years ago
  1. 0

    12/05/22 08:24:21 INFO lifecycle.LifecycleSupervisor: Starting lifecycle supervisor 1 12/05/22 08:24:21 INFO node.FlumeNode: Flume node starting - agent1 12/05/22 08:24:21 INFO nodemanager.DefaultLogicalNodeManager: Node manager starting 12/05/22 08:24:21 INFO lifecycle.LifecycleSupervisor: Starting lifecycle supervisor 10 12/05/22 08:24:21 INFO properties.PropertiesFileConfigurationProvider: Configuration provider starting 12/05/22 08:24:21 INFO properties.PropertiesFileConfigurationProvider: Reloading configuration file:/flumeNG/test1.cnf 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Processing:sink 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Processing:log-sink1 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Processing:sink 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Processing:log-sink1 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Processing:sink 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Processing:sink 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Added sinks: sink Agent: agent1 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Post-validation flume configuration contains configuration for agents: [agent1] 12/05/22 08:24:22 INFO properties.PropertiesFileConfigurationProvider: Creating channels 12/05/22 08:24:23 INFO properties.PropertiesFileConfigurationProvider: created channel ch1 12/05/22 08:24:23 INFO sink.DefaultSinkFactory: Creating instance of sink sink typefile_roll >>>>>>>> content of directory:null <<<<<<<<<< 12/05/22 08:24:23 ERROR properties.PropertiesFileConfigurationProvider: Failed to load configuration data. Exception follows. java.lang.IllegalArgumentException: Directory may not be nullnull at com.google.common.base.Preconditions.checkArgument(Preconditions.java:88) at org.apache.flume.sink.RollingFileSink.configure(RollingFileSink.java:85) at org.apache.flume.conf.Configurables.configure(Configurables.java:41) at org.apache.flume.conf.properties.PropertiesFileConfigurationProvider.loadSinks(PropertiesFileConfigurationProvider.java:350) at org.apache.flume.conf.properties.PropertiesFileConfigurationProvider.load(PropertiesFileConfigurationProvider.java:223) at org.apache.flume.conf.file.AbstractFileConfigurationProvider.doLoad(AbstractFileConfigurationProvider.java:123) at org.apache.flume.conf.file.AbstractFileConfigurationProvider.access$300(AbstractFileConfigurationProvider.java:38) at org.apache.flume.conf.file.AbstractFileConfigurationProvider$FileWatcherRunnable.run(AbstractFileConfigurationProvider.java:202) 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) at java.lang.Thread.run(Thread.java:662) Config: agent1.channels.ch1.type = memory agent1.sources.avro-source1.channels = ch1 agent1.sources.avro-source1.type = avro agent1.sources.avro-source1.bind = 0.0.0.0 agent1.sources.avro-source1.port = 41414 agent1.sinks.log-sink1.channel = ch1 agent1.sinks.log-sink1.type = logger agent1.sinks.sink.channel = ch1 agent1.sinks.sink.directory = /home/alex/test1/ agent1.sinks.sink.rollInterval=0 agent1.sinks.sink.type = file_roll agent1.channels = ch1 agent1.sources = avro-source1 agent1.sinks = sink I added System.out.print ("content of directory:" + directory +"\n"); indeed the variable is empty.

    Apache's JIRA Issue Tracker | 5 years ago | Alexander Alten-Lorenz
    java.lang.IllegalArgumentException: Directory may not be nullnull
  2. 0

    12/05/22 08:24:21 INFO lifecycle.LifecycleSupervisor: Starting lifecycle supervisor 1 12/05/22 08:24:21 INFO node.FlumeNode: Flume node starting - agent1 12/05/22 08:24:21 INFO nodemanager.DefaultLogicalNodeManager: Node manager starting 12/05/22 08:24:21 INFO lifecycle.LifecycleSupervisor: Starting lifecycle supervisor 10 12/05/22 08:24:21 INFO properties.PropertiesFileConfigurationProvider: Configuration provider starting 12/05/22 08:24:21 INFO properties.PropertiesFileConfigurationProvider: Reloading configuration file:/flumeNG/test1.cnf 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Processing:sink 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Processing:log-sink1 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Processing:sink 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Processing:log-sink1 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Processing:sink 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Processing:sink 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Added sinks: sink Agent: agent1 12/05/22 08:24:22 INFO conf.FlumeConfiguration: Post-validation flume configuration contains configuration for agents: [agent1] 12/05/22 08:24:22 INFO properties.PropertiesFileConfigurationProvider: Creating channels 12/05/22 08:24:23 INFO properties.PropertiesFileConfigurationProvider: created channel ch1 12/05/22 08:24:23 INFO sink.DefaultSinkFactory: Creating instance of sink sink typefile_roll >>>>>>>> content of directory:null <<<<<<<<<< 12/05/22 08:24:23 ERROR properties.PropertiesFileConfigurationProvider: Failed to load configuration data. Exception follows. java.lang.IllegalArgumentException: Directory may not be nullnull at com.google.common.base.Preconditions.checkArgument(Preconditions.java:88) at org.apache.flume.sink.RollingFileSink.configure(RollingFileSink.java:85) at org.apache.flume.conf.Configurables.configure(Configurables.java:41) at org.apache.flume.conf.properties.PropertiesFileConfigurationProvider.loadSinks(PropertiesFileConfigurationProvider.java:350) at org.apache.flume.conf.properties.PropertiesFileConfigurationProvider.load(PropertiesFileConfigurationProvider.java:223) at org.apache.flume.conf.file.AbstractFileConfigurationProvider.doLoad(AbstractFileConfigurationProvider.java:123) at org.apache.flume.conf.file.AbstractFileConfigurationProvider.access$300(AbstractFileConfigurationProvider.java:38) at org.apache.flume.conf.file.AbstractFileConfigurationProvider$FileWatcherRunnable.run(AbstractFileConfigurationProvider.java:202) 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) at java.lang.Thread.run(Thread.java:662) Config: agent1.channels.ch1.type = memory agent1.sources.avro-source1.channels = ch1 agent1.sources.avro-source1.type = avro agent1.sources.avro-source1.bind = 0.0.0.0 agent1.sources.avro-source1.port = 41414 agent1.sinks.log-sink1.channel = ch1 agent1.sinks.log-sink1.type = logger agent1.sinks.sink.channel = ch1 agent1.sinks.sink.directory = /home/alex/test1/ agent1.sinks.sink.rollInterval=0 agent1.sinks.sink.type = file_roll agent1.channels = ch1 agent1.sources = avro-source1 agent1.sinks = sink I added System.out.print ("content of directory:" + directory +"\n"); indeed the variable is empty.

    Apache's JIRA Issue Tracker | 5 years ago | Alexander Alten-Lorenz
    java.lang.IllegalArgumentException: Directory may not be nullnull
  3. 0

    插件在flume1.6下遇到了一些问题

    GitHub | 4 months ago | MC17
    java.lang.IllegalArgumentException: Must supply a valid regex string
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    IllegalArgumentException: HTTP transport doesn't support PATCH

    GitHub | 2 years ago | GoogleCodeExporter
    java.lang.IllegalArgumentException: HTTP transport doesn't support PATCH
  6. 0

    IllegalArgumentException: HTTP transport doesn't support PATCH

    GitHub | 2 years ago | wonderfly
    java.lang.IllegalArgumentException: HTTP transport doesn't support PATCH

  1. Handemelindo 1 times, last 3 days ago
  2. tfr 1 times, last 4 months ago
  3. brunosatriani 1 times, last 6 months ago
  4. ben.slama.jihed 1 times, last 6 months ago
  5. vega113 74 times, last 6 months ago
4 more registered users
10 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalArgumentException

    Directory may not be nullnull

    at com.google.common.base.Preconditions.checkArgument()
  2. Guava
    Preconditions.checkArgument
    1. com.google.common.base.Preconditions.checkArgument(Preconditions.java:88)
    1 frame
  3. Flume
    Configurables.configure
    1. org.apache.flume.sink.RollingFileSink.configure(RollingFileSink.java:85)
    2. org.apache.flume.conf.Configurables.configure(Configurables.java:41)
    2 frames
  4. org.apache.flume
    AbstractFileConfigurationProvider$FileWatcherRunnable.run
    1. org.apache.flume.conf.properties.PropertiesFileConfigurationProvider.loadSinks(PropertiesFileConfigurationProvider.java:350)
    2. org.apache.flume.conf.properties.PropertiesFileConfigurationProvider.load(PropertiesFileConfigurationProvider.java:223)
    3. org.apache.flume.conf.file.AbstractFileConfigurationProvider.doLoad(AbstractFileConfigurationProvider.java:123)
    4. org.apache.flume.conf.file.AbstractFileConfigurationProvider.access$300(AbstractFileConfigurationProvider.java:38)
    5. org.apache.flume.conf.file.AbstractFileConfigurationProvider$FileWatcherRunnable.run(AbstractFileConfigurationProvider.java:202)
    5 frames
  5. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
    2. java.util.concurrent.FutureTask$Sync.innerRunAndReset(FutureTask.java:317)
    3. java.util.concurrent.FutureTask.runAndReset(FutureTask.java:150)
    4. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$101(ScheduledThreadPoolExecutor.java:98)
    5. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.runPeriodic(ScheduledThreadPoolExecutor.java:180)
    6. java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:204)
    7. java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
    8. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
    9. java.lang.Thread.run(Thread.java:662)
    9 frames