<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Generate TimeUUID in Talend in Talend Studio</title>
    <link>https://community.qlik.com/t5/Talend-Studio/Generate-TimeUUID-in-Talend/m-p/2373008#M135780</link>
    <description>&lt;P&gt;I am trying to generate a &lt;STRONG&gt;timeuuid (i.e., version 1 UUID)&lt;/STRONG&gt; in Talend to use when loading data into Cassandra.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to do something similar to the &lt;EM&gt;java.util.UUID.randomUUID()&lt;/EM&gt; function that generates a version 4 UUID, except that I need to generate a version 1 UUID. I don't want to have to create a connection to a Cassandra instance and use "&lt;EM&gt;select now()"&lt;/EM&gt; everytime I need to generate a new timeuuid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand that the Datastax Cassandra Java driver includes a &lt;EM&gt;"UUIDs"&lt;/EM&gt; class that can be used to do this, but I can't seem to get the driver installed properly into Talend. I have tried using the tLoadLibrary component with no luck. I have also tried adding the library files to the my custom routine. And I've tried adding the external jars through the preferences.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am at the point where I'm no longer getting compile errors, but I'm still getting a run time error:&lt;/P&gt;&lt;PRE&gt;Exception in thread "main" java.lang.NoClassDefFoundError: com/datastax/driver/core/utils/UUIDs
...
Caused by: java.lang.ClassNotFoundException: com.datastax.driver.core.utils.UUIDs
...&lt;/PRE&gt;&lt;P&gt;Below is the code I'm using to make the function call:&lt;/P&gt;&lt;PRE&gt;String tb = com.datastax.driver.core.utils.UUIDs.timeBased().toString();
System.out.println(tb);&lt;/PRE&gt;&lt;P&gt;If anyone has had success with getting the Datastax Cassandra Java driver properly installed into Talend (or another simple way of generating a timeuuid) and can help, then that would be great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Talend Open Studio for Big Data v6.3.&lt;/P&gt;&lt;P&gt;I am developing on a machine with Windows 10.&lt;/P&gt;&lt;P&gt;Jobs are deployed on a Linux server.&lt;/P&gt;</description>
    <pubDate>Sat, 16 Nov 2024 08:55:34 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2024-11-16T08:55:34Z</dc:date>
    <item>
      <title>Generate TimeUUID in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-TimeUUID-in-Talend/m-p/2373008#M135780</link>
      <description>&lt;P&gt;I am trying to generate a &lt;STRONG&gt;timeuuid (i.e., version 1 UUID)&lt;/STRONG&gt; in Talend to use when loading data into Cassandra.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would like to do something similar to the &lt;EM&gt;java.util.UUID.randomUUID()&lt;/EM&gt; function that generates a version 4 UUID, except that I need to generate a version 1 UUID. I don't want to have to create a connection to a Cassandra instance and use "&lt;EM&gt;select now()"&lt;/EM&gt; everytime I need to generate a new timeuuid.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I understand that the Datastax Cassandra Java driver includes a &lt;EM&gt;"UUIDs"&lt;/EM&gt; class that can be used to do this, but I can't seem to get the driver installed properly into Talend. I have tried using the tLoadLibrary component with no luck. I have also tried adding the library files to the my custom routine. And I've tried adding the external jars through the preferences.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am at the point where I'm no longer getting compile errors, but I'm still getting a run time error:&lt;/P&gt;&lt;PRE&gt;Exception in thread "main" java.lang.NoClassDefFoundError: com/datastax/driver/core/utils/UUIDs
...
Caused by: java.lang.ClassNotFoundException: com.datastax.driver.core.utils.UUIDs
...&lt;/PRE&gt;&lt;P&gt;Below is the code I'm using to make the function call:&lt;/P&gt;&lt;PRE&gt;String tb = com.datastax.driver.core.utils.UUIDs.timeBased().toString();
System.out.println(tb);&lt;/PRE&gt;&lt;P&gt;If anyone has had success with getting the Datastax Cassandra Java driver properly installed into Talend (or another simple way of generating a timeuuid) and can help, then that would be great.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am using Talend Open Studio for Big Data v6.3.&lt;/P&gt;&lt;P&gt;I am developing on a machine with Windows 10.&lt;/P&gt;&lt;P&gt;Jobs are deployed on a Linux server.&lt;/P&gt;</description>
      <pubDate>Sat, 16 Nov 2024 08:55:34 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-TimeUUID-in-Talend/m-p/2373008#M135780</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2024-11-16T08:55:34Z</dc:date>
    </item>
    <item>
      <title>Re: Generate TimeUUID in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-TimeUUID-in-Talend/m-p/2373009#M135781</link>
      <description>Hello 
&lt;BR /&gt;Maybe you don't install the right driver, I have installed this jar and it fixes the error.
&lt;BR /&gt;
&lt;A href="http://central.maven.org/maven2/com/datastax/cassandra/cassandra-driver-core/3.3.2/cassandra-driver-core-3.3.2.jar" target="_blank" rel="nofollow noopener noreferrer"&gt;http://central.maven.org/maven2/com/datastax/cassandra/cassandra-driver-core/3.3.2/cassandra-driver-core-3.3.2.jar&lt;/A&gt;
&lt;BR /&gt;
&lt;BR /&gt;Regards
&lt;BR /&gt;Shong</description>
      <pubDate>Fri, 22 Dec 2017 08:20:25 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-TimeUUID-in-Talend/m-p/2373009#M135781</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-22T08:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: Generate TimeUUID in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-TimeUUID-in-Talend/m-p/2373010#M135782</link>
      <description>&lt;P&gt;I originally tried it with the cassandra-driver-core-3.3.0.jar file, but I also just tried it with the one you supplied (3.3.2) and I'm still getting the same error. Can you walk me through what you did to install the jar file and make the function call?&lt;/P&gt;</description>
      <pubDate>Fri, 22 Dec 2017 21:52:55 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-TimeUUID-in-Talend/m-p/2373010#M135782</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-22T21:52:55Z</dc:date>
    </item>
    <item>
      <title>Re: Generate TimeUUID in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-TimeUUID-in-Talend/m-p/2373011#M135783</link>
      <description>I use a tLibraryLoad to load the jar and execute the Java code on a tJava component. &lt;BR /&gt;String tb = com.datastax.driver.core.utils.UUIDs.timeBased().toString();&lt;BR /&gt;System.out.println(tb);&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 25 Dec 2017 02:14:49 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-TimeUUID-in-Talend/m-p/2373011#M135783</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-25T02:14:49Z</dc:date>
    </item>
    <item>
      <title>Re: Generate TimeUUID in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-TimeUUID-in-Talend/m-p/2373012#M135784</link>
      <description>&lt;P&gt;Strange. That is the same thing I'm doing, but I still get a class not found exception.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;Exception in thread "main" java.lang.NoClassDefFoundError: org/slf4j/LoggerFactory
	at com.datastax.driver.core.utils.UUIDs.&amp;lt;clinit&amp;gt;(UUIDs.java:66)
	...
Caused by: java.lang.ClassNotFoundException: org.slf4j.LoggerFactory
	at java.net.URLClassLoader.findClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	at sun.misc.Launcher$AppClassLoader.loadClass(Unknown Source)
	at java.lang.ClassLoader.loadClass(Unknown Source)
	... 5 more&lt;/PRE&gt;</description>
      <pubDate>Tue, 26 Dec 2017 16:22:17 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-TimeUUID-in-Talend/m-p/2373012#M135784</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2017-12-26T16:22:17Z</dc:date>
    </item>
    <item>
      <title>Re: Generate TimeUUID in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-TimeUUID-in-Talend/m-p/2373013#M135785</link>
      <description>&lt;P&gt;I am having similar issue.&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Downloaded the Cassandra Driver jar and calling using t library component and used below in tjava row:&lt;/P&gt; 
&lt;P&gt;row2.adddate = com.datastax.driver.core.utils.UUIDs.timeBased().toString();&lt;/P&gt; 
&lt;P&gt;&amp;nbsp;&lt;/P&gt; 
&lt;P&gt;Getting Below Error:&lt;/P&gt; 
&lt;P&gt;Exception in thread "main" java.lang.NoClassDefFoundError: com/google/common/util/concurrent/AsyncFunction&lt;BR /&gt;at merchandising_cpm.j_etl10029d_cpm_t3464_spn_itm_extract_db2_stg_0_1.J_ETL10029D_CPM_T3464_Spn_Itm_Extract_DB2_Stg.tDBInput_1Process(J_ETL10029D_CPM_T3464_Spn_Itm_Extract_DB2_Stg.java:3011)&lt;BR /&gt;at merchandising_cpm.j_etl10029d_cpm_t3464_spn_itm_extract_db2_stg_0_1.J_ETL10029D_CPM_T3464_Spn_Itm_Extract_DB2_Stg.runJobInTOS(J_ETL10029D_CPM_T3464_Spn_Itm_Extract_DB2_Stg.java:5586)&lt;BR /&gt;at merchandising_cpm.j_etl10029d_cpm_t3464_spn_itm_extract_db2_stg_0_1.J_ETL10029D_CPM_T3464_Spn_Itm_Extract_DB2_Stg.main(J_ETL10029D_CPM_T3464_Spn_Itm_Extract_DB2_Stg.java:5306)&lt;BR /&gt;Caused by: java.lang.ClassNotFoundException: com.google.common.util.concurrent.AsyncFunction&lt;BR /&gt;at java.net.URLClassLoader.findClass(URLClassLoader.java:382)&lt;BR /&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:424)&lt;BR /&gt;at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:349)&lt;BR /&gt;at java.lang.ClassLoader.loadClass(ClassLoader.java:357)&lt;BR /&gt;... 3 more&lt;/P&gt;</description>
      <pubDate>Tue, 25 Jun 2019 13:33:37 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-TimeUUID-in-Talend/m-p/2373013#M135785</guid>
      <dc:creator>kranthikota</dc:creator>
      <dc:date>2019-06-25T13:33:37Z</dc:date>
    </item>
    <item>
      <title>Re: Generate TimeUUID in Talend</title>
      <link>https://community.qlik.com/t5/Talend-Studio/Generate-TimeUUID-in-Talend/m-p/2373014#M135786</link>
      <description>&lt;P&gt;Solution provided above worked, when i used the same in Java row component.&lt;/P&gt;&lt;P&gt;row3.adddate = com.datastax.driver.core.utils.UUIDs.timeBased().toString();&lt;/P&gt;</description>
      <pubDate>Mon, 01 Jul 2019 20:45:31 GMT</pubDate>
      <guid>https://community.qlik.com/t5/Talend-Studio/Generate-TimeUUID-in-Talend/m-p/2373014#M135786</guid>
      <dc:creator>kranthikota</dc:creator>
      <dc:date>2019-07-01T20:45:31Z</dc:date>
    </item>
  </channel>
</rss>

