Hortonworks Sandbox Forum

import flat file fixed size with dictionary template

  • #26901

    Hi guys,

    I have a flat file with fixed size and another file(metadata template) that says what are the size of each column and the corresponding description of each item in the flat file. What is the best way to import it into hadoop in the sandbox? transform it in a single csv file? Is there an easy way to do that?
    Exemple of my flat file would be:
    002JACK 002

    Example of my metadata template file:

    001 – Student
    002 – Information Tecnology Analyst

    Note that in the flat file where profession is 001 is actual Student and 002 is Information Tecnology Analyst

    Thanks in Advanced.

to create new topics or reply. | New User Registration

  • Author
  • #26908
    Carter Shanklin

    To clarify, are you looking to import this into a table? If so your best bet is to convert it to CSV. If the file is not too big you can do that in Excel or you can use a scripting language.


    Yes, i will import into a table.

You must be to reply to this topic. | Create Account

Support from the Experts

A HDP Support Subscription connects you experts with deep experience running Apache Hadoop in production, at-scale on the most demanding workloads.

Enterprise Support »

Become HDP Certified

Real world training designed by the core architects of Hadoop. Scenario-based training courses are available in-classroom or online from anywhere in the world

Training »

Hortonworks Data Platform
The Hortonworks Data Platform is a 100% open source distribution of Apache Hadoop that is truly enterprise grade having been built, tested and hardened with enterprise rigor.
Get started with Sandbox
Hortonworks Sandbox is a self-contained virtual machine with Apache Hadoop pre-configured alongside a set of hands-on, step-by-step Hadoop tutorials.
Modern Data Architecture
Tackle the challenges of big data. Hadoop integrates with existing EDW, RDBMS and MPP systems to deliver lower cost, higher capacity infrastructure.