private FileSource createAgentFileSource() {
        FileSource fileSource = new FileSource();
        fileSource.setSourceName("{source.name}");
        fileSource.setAgentIp("{agent.ip}");
        fileSource.setPattern("/a/b/*.txt");
        fileSource.setTimeOffset("-1h");
        return fileSource;
    }
Test class for file to hive.
inlong-manager/manager-client-examples/src/test/java/org/apache/inlong/manager/client/File2HiveExample.java