Example code available here: https://github.com/apache/lens/blob/master/lens-examples/src/main/java/org/apache/lens/examples/PopulateSampleMetastore.java#L105
On Tue, Jul 19, 2016 at 12:21 PM Rajat Khandelwal <[email protected]> wrote: > You can automate via the java client. Add dependency on lens-client > module, instantiate a new client like this: > > LensClientSingletonWrapper.instance().getClient() > > > After that, there are methods to add partitions in the LensClient instance. > Your IDE's auto-complete should help you from there. > > > On Tue, Jul 19, 2016 at 1:41 AM Dayou Jiang <[email protected]> wrote: > >> Hi Lens Developers and Users, >> >> Is there an easy way to register new table partition with lens? I >> created two dimensions tables and one fact table with daily update, one has >> multiple partitions. I am currently constructing xml files and using "*add >> partition" *command to register new arrived partition to lens. What is >> the best way to automatic this? Are there any code examples for that? >> >> Thanks, >> >>
