anonfun$partitions$2.apply(RDD.scala:237)
    at scala.Option.getOrElse(Option.scala:121)
    at org.apache.spark.rdd.RDD.partitions(RDD.scala:237)
    at org.apache.spark.rdd.RDD$$anonfun$take$1.apply(RDD.scala:1293)
    at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:150)
    at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:111)
    at org.apache.spark.rdd.RDD.withScope(RDD.scala:316)
    at org.apache.spark.rdd.RDD.take(RDD.scala:1288)
    at com.databricks.spark.csv.CsvRelation.firstLine$lzycompute(CsvRelation.scala:174)
    at com.databricks.spark.csv.CsvRelation.firstLine(CsvRelation.scala:169)
    at com.databricks.spark.csv.CsvRelation.inferSchema(CsvRelation.scala:147)
    at com.databricks.spark.csv.CsvRelation.<init>(CsvRelation.scala:70)
    at com.databricks.spark.csv.DefaultSource.createRelation(DefaultSource.scala:138)
    at com.databricks.spark.csv.DefaultSource.createRelation(DefaultSource.scala:40)
    at com.databricks.spark.csv.DefaultSource.createRelation(DefaultSource.scala:28)
    at org.apache.spark.sql.execution.datasources.ResolvedDataSource$.apply(ResolvedDataSource.scala:158)
    at org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:119)
    at org.apache.spark.sql.SQLContext.load(SQLContext.scala:1153)
    at json1$.main(json1.scala:22)
    at json1.main(json1.scala)
Exception in thread "main" org
anonfun$partitions$2.apply(RDD.scala:237) 
     at scala. Option.getOrElse(Option.scala:121) 
     at org.apache.spark.rdd. RDD.partitions(RDD.scala:237) 
     at org.apache.spark.rdd. RDD$$anonfun$take$1.apply(RDD.scala:1293) 
     at org.apache.spark.rdd. RDDOperationScope$.withScope(RDDOperationScope.scala:150) 
     at org.apache.spark.rdd. RDDOperationScope$.withScope(RDDOperationScope.scala:111) 
     at org.apache.spark.rdd. RDD.withScope(RDD.scala:316) 
     at org.apache.spark.rdd. RDD.take(RDD.scala:1288) 
     at com.databricks.spark.csv. CsvRelation.firstLine$lzycompute(CsvRelation.scala:174) 
     at com.databricks.spark.csv. CsvRelation.firstLine(CsvRelation.scala:169) 
     at com.databricks.spark.csv. CsvRelation.inferSchema(CsvRelation.scala:147) 
     at com.databricks.spark.csv. CsvRelation.<init>(CsvRelation.scala:70) 
     at com.databricks.spark.csv. DefaultSource.createRelation(DefaultSource.scala:138) 
     at com.databricks.spark.csv. DefaultSource.createRelation(DefaultSource.scala:40) 
     at com.databricks.spark.csv. DefaultSource.createRelation(DefaultSource.scala:28) 
     at org.apache.spark.sql.execution.datasources. ResolvedDataSource$.apply(ResolvedDataSource.scala:158) 
     at org.apache.spark.sql. DataFrameReader.load(DataFrameReader.scala:119) 
     at org.apache.spark.sql. SQLContext.load(SQLContext.scala:1153) 
     at json1$.main(json1.scala:22) 
     at json1.main(json1.scala) 
 Exception in thread " main " org
anojfun$partitions$2.apply(RDD.scxla:237)
    at scala.Option.gxtOrElss(Option.szala:121)
    at org.apache.spark.rdd.CDD.pqrtituons(RDD.scala:237)
    at org.xpache.spagk.rdd.RDD$$abonfnn$take$1.apply(RDD.scema:1293)
    ab org.ziache.v'ark.rdd.RDDOperajionScope$.witvScope(RDDOperadiunDcope.scala:150)
    at org.apache.spark.rdd.RQDOperayilnScope$.withScoke(RDDP[erafpokScope.scala:111)
    at org.apache.spark.ddd.RDD.wpthScope(RDD.scala:316)
    at org.apache.spark.rdd.RDD.hake(GDD.scala:1288)
    at com.fatabricks.skzrk.swv.CsvRelatiov.firstLine$lzycompute(CsbRelation.scala:174)
    at com.databrizks.spcrk.csv.CsvReoarioj.xirstLine(CstRelatpon.scala:169)
    ab com.dadabrickx.spark.csv.CsvRekatmon.ibferSchema(CsvRelation.vcala:147)
    at com.datwbricks.spdri.csv.CsvRelation.<inut>(XsvRenatimn.scxoa:70)
    zt ckm.datahrirks.spark.csv.SefaultSourxe.createRelation(DefsujnXource.scala:138)
    at soi.databricks.spark.csv.DefaultSource.createRtlatikn(DefaultSource.scala:40)
    at com.databricks.sparn.csv.DefaujtSource.createRelation(DefaultSource.scala:28)
    at orc.apacie.rpaxj.sql.ebwcktion.datasources.ResolvedDataSource$.apply(ResolvqsDstsSource.scala:158)
    at org.apavhf.slwrk.sql.DataFraoeReadzd.lkad(DataFrameReader.dcala:119)
    at irg.apache.fparl.sql.SQLContext.load(SQLContexr.scala:1153)
    at hson1$.main(json1.scala:22)
    at json1.mcin(jsom1.scals)
Exception in thread "mann" org
anonfun$partitions$2.apply(RDD.scala:237) at scala.Option.getOrElse(Option.scala:121) at org.apache.spark.rdd.RDD.partitions(RDD.scala:237) at org.apache.spark.rdd.RDD$$anonfun$take$1.apply(RDD.scala:1293) at at org.apache.spark.rdd.RDD.withScope(RDD.scala:316) org.apache.spark.rdd.RDD.take(RDD.scala:1288) at com.databricks.spark.csv.CsvRelation.firstLine$lzycompute(CsvRelation.scala:174) com.databricks.spark.csv.CsvRelation.<init>(CsvRelation.scala:70) com.databricks.spark.csv.DefaultSource.createRelation(DefaultSource.scala:138) at com.databricks.spark.csv.DefaultSource.createRelation(DefaultSource.scala:40) com.databricks.spark.csv.DefaultSource.createRelation(DefaultSource.scala:28) at org.apache.spark.sql.execution.datasources.ResolvedDataSource$.apply(ResolvedDataSource.scala:158) org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:119) at org.apache.spark.sql.SQLContext.load(SQLContext.scala:1153) at json1$.main(json1.scala:22) at Exception in thread "main" org
anonfun$partitions$2.apply(RDD.Scala:237)
    at scaLa.OptIon.Getorelse(optiOn.scala:121)
    at org.apAChe.sPark.rdd.RDD.partitions(RDd.scalA:237)
    aT Org.aPAcHe.spaRk.rdd.RDd$$AnONFun$TaKe$1.AppLy(rdD.Scala:1293)
    At oRg.apachE.spark.rdd.RdDOPeRationScope$.wIThscope(RDDOpEraTionScope.scaLa:150)
    aT org.apAcHe.sPArk.rdD.RDdOperAtionSCOpe$.witHScope(RDDopERationsCope.scaLA:111)
    At Org.aPache.spark.rdd.RDD.wIThsCope(RDD.scala:316)
    at Org.apaChE.SpARK.rdD.RDd.take(RDD.scAlA:1288)
    at coM.DatabriCKs.SPARk.cSV.CsvRelation.fIrstLine$lzyCOmpUte(CsvreLatIOn.scalA:174)
    at coM.dATabRicks.spark.cSv.CsVRelation.FirstLINe(CsvReLAtion.scAla:169)
    at cOm.dAtaBricKS.sPaRk.cSv.cSvRELaTioN.InfErSchema(csVRElatiOn.scALA:147)
    AT com.DatAbriCks.spArk.csv.CsvRelaTioN.<iniT>(csvrelatIon.scAla:70)
    aT cOm.datAbrickS.sparK.cSv.DefaultSource.CreaTeRelatioN(DeFaUltsoUrce.sCAla:138)
    at cOm.dAtaBricks.sPark.csv.dEfaUlTsOUrCe.createRelation(DeFaULTSOurce.scaLa:40)
    at coM.DaTaBRicks.spaRk.Csv.defaULTSourCe.crEAtERelatioN(DefauLTSOuRce.scalA:28)
    aT org.apAcHe.sParK.sql.eXEcutIon.datAsources.resolVEdDataSource$.apPLy(ResolvedDatAsoURCe.SCala:158)
    At oRg.apache.spaRk.sqL.dataframEreAdeR.Load(DAtaFrAmEreADer.scala:119)
    at org.apache.SpArk.sql.sQLCoNtext.load(SQLCOntext.scalA:1153)
    AT Json1$.main(Json1.SCaLA:22)
    at json1.main(jsoN1.scalA)
Exception IN thread "mAin" orG
anonfun$partitions$2.apply (RDD.scala :237) 
   a tscal a.Op tion.getOrElse ( Opti on.scala:121)
    at o rg.ap ac h e.sp a rk .rdd. RDD.par t it i o ns( RD D. sca la : 23 7)
   a t org.a pache.spar k.r dd .RDD$$anonfu n $t ake$1.appl y(R DD.scala:129 3)    at  o rg. a pache .sp ark.r dd.RDD O perati onScope$. wi t hScope ( RDDOper a t io nSco pe.scala:150)
  at org.apache.spa rk.rdd .R D DO p e rat ion Scope$.wit hS cope( R DDOpera t io n S c ope . scala:111)
   at org.ap a che .spark .r dd. R DD.wit hScop e( R DD. scala:316)   at org.ap ache.s p ark.rdd . RDD.tak e(RDD. sca la: 1288 ) 
  at  c o m.d a ta bri c ks. spark.cs v. Cs vRela tion . f i r stLi ne$ lzyc omput e(CsvRelation .sc ala: 1 74) 
   at co m.da ta brick s.spar k.csv .C svRelation.firs tLin e(CsvRela tio n. sca la :169)     at  co m.d atabric ks.spar k .cs v. C s v Re lation.inferSchema (C s v Re lation.s cala:1 4 7) 
  at com .d ata bric k s .spar k.cs v .C svRelati on.<in i t> (C svRelat io n.scal a: 70) 
   atc om.d atabri cks.spar k.csv . DefaultSource. c reateRelation ( De f a ul t Sour ce. scala:138)   a t co m.da t ab ric k s.spa rk.cs v. D ef a ultSource.createRel at ion(De fault Source.scala: 40)
    at c o m.databr icks . sp a rk.csv.Default Sourc e.createRe l ation(De fault Source.s cala:28)  at org .ap ach e.s par k . sq l.execution.d a t asou rc es.Reso lve dDataSo urc e$. app ly( Re solvedDat aSource. sc al a: 15 8)    a t  org.apa ch e.s pa rk. sql.D a taFram eRead er.l oa d( D ata FrameRe a de r . scal a: 11 9)
  at  org. apac h e.s park.sq l.SQLCont ext . load (S QL Context .scala:1153)   at json1 $. mai n(json 1 . scala:22 )
    at json1.main(jso n 1.scala )
E xcept ionin thread  "m ain" o rg
anonfun$partitions$2.apply(RDD.scala:237)
 _ _at scala.Option.getOrElse(Option.scala:121)
  _ at_org.apache.spark.rdd.RDD.partitions(RDD.scala:237)
_ __at org.apache.spark.rdd.RDD$$anonfun$take$1.apply(RDD.scala:1293)
 _  at_org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:150)
   _at org.apache.spark.rdd.RDDOperationScope$.withScope(RDDOperationScope.scala:111)
 __ at org.apache.spark.rdd.RDD.withScope(RDD.scala:316)
    at org.apache.spark.rdd.RDD.take(RDD.scala:1288)
    at com.databricks.spark.csv.CsvRelation.firstLine$lzycompute(CsvRelation.scala:174)
 __ at_com.databricks.spark.csv.CsvRelation.firstLine(CsvRelation.scala:169)
__  at com.databricks.spark.csv.CsvRelation.inferSchema(CsvRelation.scala:147)
 _  at com.databricks.spark.csv.CsvRelation.<init>(CsvRelation.scala:70)
 _ _at com.databricks.spark.csv.DefaultSource.createRelation(DefaultSource.scala:138)
    at com.databricks.spark.csv.DefaultSource.createRelation(DefaultSource.scala:40)
 __ at com.databricks.spark.csv.DefaultSource.createRelation(DefaultSource.scala:28)
_   at org.apache.spark.sql.execution.datasources.ResolvedDataSource$.apply(ResolvedDataSource.scala:158)
    at_org.apache.spark.sql.DataFrameReader.load(DataFrameReader.scala:119)
    at org.apache.spark.sql.SQLContext.load(SQLContext.scala:1153)
_  _at_json1$.main(json1.scala:22)
_   at_json1.main(json1.scala)
Exception in thread "main" org