Skip to content

Instantly share code, notes, and snippets.

View abshingate's full-sized avatar

abshingate abshingate

View GitHub Profile
<link rel="import" href="../topeka-elements/theme.html">
<link rel="import" href="../topeka-elements/topeka-resources.html">
<link rel="import" href="../topeka-elements/topeka-category.html">
<polymer-element name="my-element">
<template>
<style>
:host {
position: absolute;
@abshingate
abshingate / designer.html
Last active August 29, 2015 14:19
designer
<link rel="import" href="../topeka-elements/category-images.html">
<link rel="import" href="../core-icon/core-icon.html">
<link rel="import" href="../core-icons/core-icons.html">
<link rel="import" href="../core-icons/av-icons.html">
<link rel="import" href="../paper-fab/paper-fab.html">
<polymer-element name="my-element">
<template>
<style>
@abshingate
abshingate / designer.html
Last active August 29, 2015 14:18
designer
<link rel="import" href="../core-icon-button/core-icon-button.html">
<link rel="import" href="../core-toolbar/core-toolbar.html">
<link rel="import" href="../paper-tabs/paper-tabs.html">
<link rel="import" href="../paper-tabs/paper-tab.html">
<polymer-element name="my-element">
<template>
<style>
:host {
package com.abhijit.mr.sequence.number;
import java.io.DataInput;
import java.io.DataOutput;
import java.io.IOException;
import org.apache.hadoop.io.Text;
import org.apache.hadoop.io.Writable;
public class MRSeqNumCompositeValue implements Writable,
select * from person where title is null;
CREATE EXTERNAL TABLE person
(
name string,
title string,
birth_year string
)
ROW FORMAT DELIMITED FIELDS TERMINATED BY '|'
LOCATION '/person'
TBLPROPERTIES('serialization.null.format'='');
CREATE EXTERNAL TABLE person
(
name string,
title string,
birth_year string
)
ROW FORMAT DELIMITED FIELDS TERMINATED BY '|'
LOCATION '/person';
-bash-3.2$ hadoop fs -copyFromLocal input.txt /user/abhijit/input.txt
-bash-3.2$ hadoop fs -cat /user/abhijit/input.txt
mark||2011
tony|Mr.|2012
richard||2013
-bash-3.2$ echo -e "mark||2011\ntony|Mr.|2012\nrichard||2013" > input.txt
-bash-3.2$ cat input.txt
mark||2011
tony|Mr.|2012
richard||2013
@abshingate
abshingate / userDefineLang_ApachePig.xml
Last active April 2, 2020 17:35
Apache Pig Language for Notepad++
<NotepadPlus>
<UserLang name="Apache PIG" ext="pig" udlVersion="2.1">
<Settings>
<Global caseIgnored="yes" allowFoldOfComments="yes" foldCompact="no" forcePureLC="0" decimalSeparator="0" />
<Prefix Keywords1="no" Keywords2="no" Keywords3="no" Keywords4="no" Keywords5="no" Keywords6="no" Keywords7="no" Keywords8="no" />
</Settings>
<KeywordLists>
<Keywords name="Comments">00-- 01 02 03/* 04*/</Keywords>
<Keywords name="Numbers, prefix1"></Keywords>
<Keywords name="Numbers, prefix2"></Keywords>