<?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>question Re: tutorial exercise 2: no tables in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/tutorial-exercise-2-no-tables/m-p/33441#M9411</link>
    <description>Can you check the output of Sqoop and any CREATE TABLE commands (depending&lt;BR /&gt;on the version of the tutorial you're working from) for errors? Seems to me&lt;BR /&gt;one of them has failed, but there's no way to know what or why without more&lt;BR /&gt;information.&lt;BR /&gt;&lt;BR /&gt;</description>
    <pubDate>Mon, 26 Oct 2015 21:04:56 GMT</pubDate>
    <dc:creator>Sean</dc:creator>
    <dc:date>2015-10-26T21:04:56Z</dc:date>
    <item>
      <title>tutorial exercise 2: no tables</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/tutorial-exercise-2-no-tables/m-p/33439#M9410</link>
      <description>&lt;P&gt;I do not see any tables when querying in Impala Editor, it says this operation has no results, and I've seen somebody has this same issue, I tried all the suggestions still the same and it doesn't seem the tables are in the Hive either.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:46:06 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/tutorial-exercise-2-no-tables/m-p/33439#M9410</guid>
      <dc:creator>sirisham</dc:creator>
      <dc:date>2022-09-16T09:46:06Z</dc:date>
    </item>
    <item>
      <title>Re: tutorial exercise 2: no tables</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/tutorial-exercise-2-no-tables/m-p/33441#M9411</link>
      <description>Can you check the output of Sqoop and any CREATE TABLE commands (depending&lt;BR /&gt;on the version of the tutorial you're working from) for errors? Seems to me&lt;BR /&gt;one of them has failed, but there's no way to know what or why without more&lt;BR /&gt;information.&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Oct 2015 21:04:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/tutorial-exercise-2-no-tables/m-p/33441#M9411</guid>
      <dc:creator>Sean</dc:creator>
      <dc:date>2015-10-26T21:04:56Z</dc:date>
    </item>
    <item>
      <title>Re: tutorial exercise 2: no tables</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/tutorial-exercise-2-no-tables/m-p/33446#M9412</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I ran the command this is what it showed on the screen&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[cloudera@quickstart ~]$ sqoop import-all-tables -m 1 --connect jdbc:mysql://quickstart:3306/retail_db --username=retail_dba --password=cloudera --compression-codec=snappy --as-avrodatafile --warehouse-dir=/user/hive/warehouse&lt;BR /&gt;Warning: /usr/lib/sqoop/../accumulo does not exist! Accumulo imports will fail.&lt;BR /&gt;Please set $ACCUMULO_HOME to the root of your Accumulo installation.&lt;BR /&gt;15/10/26 14:53:41 INFO sqoop.Sqoop: Running Sqoop version: 1.4.5-cdh5.4.2&lt;BR /&gt;15/10/26 14:53:41 WARN tool.BaseSqoopTool: Setting your password on the command-line is insecure. Consider using -P instead.&lt;BR /&gt;15/10/26 14:53:42 INFO manager.MySQLManager: Preparing to use a MySQL streaming resultset.&lt;BR /&gt;15/10/26 14:53:43 INFO tool.CodeGenTool: Beginning code generation&lt;BR /&gt;15/10/26 14:53:43 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM `categories` AS t LIMIT 1&lt;BR /&gt;15/10/26 14:53:43 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM `categories` AS t LIMIT 1&lt;BR /&gt;15/10/26 14:53:43 INFO orm.CompilationManager: HADOOP_MAPRED_HOME is /usr/lib/hadoop-mapreduce&lt;BR /&gt;Note: /tmp/sqoop-cloudera/compile/ae6e95d629f4cf392cd8ae9f44d1c7d3/categories.java uses or overrides a deprecated API.&lt;BR /&gt;Note: Recompile with -Xlint:deprecation for details.&lt;BR /&gt;15/10/26 14:53:48 INFO orm.CompilationManager: Writing jar file: /tmp/sqoop-cloudera/compile/ae6e95d629f4cf392cd8ae9f44d1c7d3/categories.jar&lt;BR /&gt;15/10/26 14:53:48 WARN manager.MySQLManager: It looks like you are importing from mysql.&lt;BR /&gt;15/10/26 14:53:48 WARN manager.MySQLManager: This transfer can be faster! Use the --direct&lt;BR /&gt;15/10/26 14:53:48 WARN manager.MySQLManager: option to exercise a MySQL-specific fast path.&lt;BR /&gt;15/10/26 14:53:48 INFO manager.MySQLManager: Setting zero DATETIME behavior to convertToNull (mysql)&lt;BR /&gt;15/10/26 14:53:48 INFO mapreduce.ImportJobBase: Beginning import of categories&lt;BR /&gt;15/10/26 14:53:48 INFO Configuration.deprecation: mapred.job.tracker is deprecated. Instead, use mapreduce.jobtracker.address&lt;BR /&gt;15/10/26 14:53:49 INFO Configuration.deprecation: mapred.jar is deprecated. Instead, use mapreduce.job.jar&lt;BR /&gt;15/10/26 14:53:52 INFO manager.SqlManager: Executing SQL statement: SELECT t.* FROM `categories` AS t LIMIT 1&lt;BR /&gt;15/10/26 14:53:52 INFO mapreduce.DataDrivenImportJob: Writing Avro schema file: /tmp/sqoop-cloudera/compile/ae6e95d629f4cf392cd8ae9f44d1c7d3/sqoop_import_categories.avsc&lt;BR /&gt;15/10/26 14:53:52 INFO Configuration.deprecation: mapred.map.tasks is deprecated. Instead, use mapreduce.job.maps&lt;BR /&gt;15/10/26 14:53:52 INFO client.RMProxy: Connecting to ResourceManager at /0.0.0.0:8032&lt;BR /&gt;15/10/26 14:53:53 WARN security.UserGroupInformation: PriviledgedActionException as:cloudera (auth:SIMPLE) cause:org.apache.hadoop.mapred.FileAlreadyExistsException: Output directory hdfs://quickstart.cloudera:8020/user/hive/warehouse/categories already exists&lt;BR /&gt;15/10/26 14:53:53 ERROR tool.ImportAllTablesTool: Encountered IOException running import job: org.apache.hadoop.mapred.FileAlreadyExistsException: Output directory hdfs://quickstart.cloudera:8020/user/hive/warehouse/categories already exists&lt;BR /&gt;[cloudera@quickstart ~]$&lt;BR /&gt;[cloudera@quickstart ~]$&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;By the way I just started learning Hadoop, so I don't know much of anything, but this is what it showed on the terminal when I ran the 1st time and also when I tried to run again. Hope you have some answer.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Mon, 26 Oct 2015 22:00:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/tutorial-exercise-2-no-tables/m-p/33446#M9412</guid>
      <dc:creator>sirisham</dc:creator>
      <dc:date>2015-10-26T22:00:12Z</dc:date>
    </item>
    <item>
      <title>Re: tutorial exercise 2: no tables</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/tutorial-exercise-2-no-tables/m-p/33448#M9413</link>
      <description>So Sqoop is trying to do things, that might seem surprising if you're new&lt;BR /&gt;to Hadoop: first, it's going to copy files containing the raw data to&lt;BR /&gt;/user/hive/warehouse/, and then second, it's going to execute a&lt;BR /&gt;CREATE TABLE (similar to what you may have used in SQL databases before)&lt;BR /&gt;with Hive to recreate the metadata that goes with those files.&lt;BR /&gt;&lt;BR /&gt;In the output you showed me, it says the /user/hive/warehouse/&lt;BR /&gt;directory for the categories table already exists, and it's not expecting&lt;BR /&gt;it to. It seems that a previous run has failed for a different reason, and&lt;BR /&gt;we should clean it up before trying again.&lt;BR /&gt;&lt;BR /&gt;To get rid of the raw data files, run: 'sudo -u hdfs hadoop fs -rm -r&lt;BR /&gt;/user/hive/warehouse/\*' (I'm assuming you don't have any other data in the&lt;BR /&gt;cluster you care about).&lt;BR /&gt;&lt;BR /&gt;To get rid of the metadata, start the impala shell with 'impala-shell' (you&lt;BR /&gt;don't need any other arguments because you're on the Quickstart VM and the&lt;BR /&gt;defaults all happen to be correct). Run 'invalidate metadata;', and then&lt;BR /&gt;'show tables;'. For any tables you see, run 'drop table ;'.&lt;BR /&gt;Then rerun the Sqoop job and it *should* succeed, but if it doesn't the&lt;BR /&gt;output should give us the root cause of the real problem...&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Mon, 26 Oct 2015 22:24:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/tutorial-exercise-2-no-tables/m-p/33448#M9413</guid>
      <dc:creator>Sean</dc:creator>
      <dc:date>2015-10-26T22:24:56Z</dc:date>
    </item>
    <item>
      <title>Re: tutorial exercise 2: no tables</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/tutorial-exercise-2-no-tables/m-p/33466#M9414</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So I have cleared everything as you said and ran again and it worked fine, may be it must&amp;nbsp;have worked even for the 1st time as the 1st time I have forgotten to create the tables in Impala before quering to show the tables. But I learned something from this.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for helping&lt;/P&gt;</description>
      <pubDate>Tue, 27 Oct 2015 13:25:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/tutorial-exercise-2-no-tables/m-p/33466#M9414</guid>
      <dc:creator>sirisham</dc:creator>
      <dc:date>2015-10-27T13:25:31Z</dc:date>
    </item>
  </channel>
</rss>

