It seems that custom sources cannot be used in embedded agent mode,
neither can hdfs sinks.