bcounts_setuptutorial
TRANSCRIPT
7/23/2019 BCounts_SetupTutorial
http://slidepdf.com/reader/full/bcountssetuptutorial 1/26
#$%&'($) *+,)-&.' /010/
2&3&4+56&)- 7)3(.+)6&)- 8,-+.($4 9+. *&)-:; <0=
>?<@<A B+.C'-$-(+)
#% D4&> E+F4+3 $)G *H.(' I+,4()
8&'-()J K% 2$)(&4 L,4& $)G E&) E.,J4&.
M$),$.% =1 N/1=
*+)-$O-P *H.(' I+,4()P *H.('Q5$--&.)'$)G5.&G(O-(+)'0)&-
7/23/2019 BCounts_SetupTutorial
http://slidepdf.com/reader/full/bcountssetuptutorial 2/26
#$%&' () *(+,'+,-
. /+,0(123,4(+ 555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555 6
" #7' 8214'+3' 5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555 6
9 #7' :($& 55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555 6
6 ;0(<4-4(+4+= 555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555 6
65. >402- ?4-@ A$0+4+= 55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
65" B(),C$0' 80374<' A$0+4+= 555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
659 D'<'&(EF'+, A(0@-,$,4(+ 555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
656 HI$-' *&2-,'0 5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
65G J',C(0@ 55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
G *(+<'+,4(+- 555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555 K
K I$L'-4$+ *(2+,'0- M5.5M D'<'&(EF'+, N+<40(+F'+, 5555555555555555555555555555555555555555555555555555555555555555555 O
K5. P(= 4+,( ,7' :+(F' D'-@,(E (+ 7.951'F(51'< C4,7 ,7' E(2&4+ $33(2+,5 555555555555555555555555555555555555555555555555555555555555
K5" I0(C-' ,( *&(21'0$ Q$+$='0 $, 7,,ERSS7."51'F(51'<RO.TMS $+1 &(= 4+ C4,7 ,7' $1F4+ $33(2+, 2-4+=
U40')(V (0 (,7'0 %0(C-'0 4+ ,7' :+(F' D'-@,(E55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
K59 A4,74+ *&(21'0$ Q$+$='0W H(-,- XY 811 H(-, #74- C4&& -,$0, ,7' 811 H(-,- A4Z$015 U(&&(C ,7'
4+-,023,4(+- () ,7' C4Z$01 ,( $11 7.951'F(51'< ,( ,7' 3&2-,'0 %2, 1( +(, $11 $+L 0(&&- ,( 7.951'F(51'<W $- C
1( +(, C$+, ,7' 1'<'&(EF'+, 7(-, ,( E$0,434E$,' $- E$0, () ,7' 3&2-,'05 A7'+ 3(FE&','W 7.951'F(51'< C4&& -7
2E 4+ ,7' H(-,- &4-,5 555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
K56 A4,74+ *&(21'0$ Q$+$='0W B'0<43'- XY HI$-' [7%$-'.\ $+1 83,4(+- XY D(C+&($1 *&4'+, *(+)4=20$,4(+ $
-$<' ,( S7(F'SE(2&4+SD'-@,(ES7%$-'.X3&4'+,3(+)4=5Z4E 55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
K5G A4,74+ *&(21'0$ Q$+$='0W B'0<43'- XY Q$E?'123' [F$E0'123'.\ $+1 83,4(+- XY D(C+&($1 *&4'+,
*(+)4=20$,4(+ $+1 -$<' ,( S7(F'SE(2&4+SD'-@,(ESF$E0'123'.X3&4'+,3(+)4=5Z4E 5555555555555555555555555555555555555555555555555555555
K5K ]E'+ $ #'0F4+$& [8&& -7'&& 3(FF$+1- =(4+= )(0C$01 C4&& %' 'V'32,'1 4+ #'0F4+$&\ 55555555555555555555555555555555555555
K5O ;(4+, 7%$-' -7'&& ,( 7."51'F(51'< 555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
K5T #'-, HI$-' 3(++'3,4<4,L $+1 7%$-' -7'&& 555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555K5^ /+-,$&& ,7' D'<'&(EF'+, #((&- =0(2E 5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
K5.M /+-,$&& 8E$37' Q$<'+ 95M5_ 55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
K5.. /+-,$&& 8E$37' Q$<'+ "5"5_ 55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
K5." /+-,$&& $-3441(3 1(VL='+ 7'&E"F$+W -(203'X74=7&4=7, $+1 ;L,7(+ "5O59 5555555555555555555555555555555555555555555555555555555555555
K5.9 /+-,$&& N3&4E-' `2+( [ 4+ )2,20'W +'C'0 4- E0(%$%&L ]aW %2, (E,4F$& 0'E'$,$%4&4,L C4,7 `2+(\ 5555555555555555555555
K5.6 8EE'+1 ,( ,7' '+1 () S7(F'SE(2&4+S5%$-703 5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
K5.G ]E'+ $ "+1 #'0F4+$& $+1 B,$0, N3&4E-' ̀ 2+( 5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
7/23/2019 BCounts_SetupTutorial
http://slidepdf.com/reader/full/bcountssetuptutorial 3/26
K5.K *&43@ ]a (+ C(0@-E$3' &$2+37'0 1')$2&,-W %(,7 +(C $+1 C7'+ -''+ ,70(2=7 ,7' 0'F$4+1'0 () ,74-
,2,(04$&5 5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
K5.O /+-,$&& Q"N 'V,'+-4(+ )(0 N3&4E-' ̀ 2+( 55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
K5.T *&(-' N3&4E-' 555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
K5.^ ]%,$4+ $ 3(EL () %3(2+,-XM5.5MXBJ8;BH]#XE0(b'3,5,$05%Z" )0(F *&(21'0$ $+1 -$<' ,( S7(F'SE(2&4+S 55
K5"M ;0'E$0' %3(2+,-XM5.5MXBJ8;BH]# )(0 'V'32,4(+ )0(F N3&4E-' $+1 *P/ 5555555555555555555555555555555555555555555555555555555555555555K5". *7'3@ Q"c?N;] 3&$--E$,7 <$04$%&' -', 4+ N3&4E-' 55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
K5"" /+ N3&4E-'R U4&'XY/FE(0,555XY['VE$+1\ :'+'0$& XY [74=7&4=7,\ NV4-,4+= ;0(b'3,- 4+,( A(0@-E$3' XY [3&43@
J'V, XY $+1 -E'34)L 0((, 140'3,(0L S7(F'SE(2&4+S%3(2+,-XM5.5MXBJ8;BH]# [74, '+,'0 4) E$-,'1\ 5555555555555555555555555
K5"9 /+ N3&4E-'R A4+1(CXY;0')'0'+3'-XY`$<$XY*(1' B,L&'XYU(0F$,,'0 55555555555555555555555555555555555555555555555555555555555555555555555
K5"6 *&43@ /FE(0,d $+1 +$<4=$,' ,( S7(F'SE(2&4+S%3(2+,-XM5.5MXBJ8;BH]#S'3&4E-'c)(0F$,,'0c$E$37'5VF
#7'+ *&43@ 8EE&L $+1 ,7'+ *&43@ ]a $+1 ,7'+ 3&(-' N3&4E-'5 5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
K5"G *0'$,' -37'F$ )(0 I$L'-4$+ *(2+,'0- 'V$FE&'- 4+ HI$-' 5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
K5"K P($1 /04- 1$,$ 4+,( HI$-' <4$ *P/ 555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555K5"O P($1 /04- 1$,$ 4+,( HI$-' <4$ N3&4E-' 55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
K5"T >4'C /04- 1$,$ $+1 -37'F$ 4+ HI$-' 555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
K5"^ ;'0)(0F JI 4+)'0'+3' (+ ,7' /04- 1$,$-', J(,'R JI 4+)'0'+3' F2-, %' 'V'32,'1 C4,74+ 9MM -'3(+1- ()
&($14+= 404- 1$,$ 4+,( 7%$-'W (0 F(14)L ,7' 9MM 4+ ,7' )(&&(C4+= -,'E- ,( $ &$0='0 +2F%'0 () -'3(+1- C74&'
,'-,4+=5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
K59M ;'0)(0F 3&4e2' -3(04+= C4,7 0$+1(F E0(b'3,4(+- 55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
K59. *0'$,' -F$&& 1'&,$ () ,7' $151$,$ )4&' 55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
K59" P($1 81 1$,$ 4+,( HI$-' <4$ N3&4E-' 555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
K599 ;'0)(0F JI 4+)'0'+3' (+ ,7' 81 1$,$-', ?2+XY?2+ *(+)4=20$,4(+-555 555555555555555555555555555555555555555555555555555555555555555555
K596 *0'$,' %$= () C(01- )4&' )0(F 3(+)4=20$,4(+ )4&' 55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
K59G N14, S7(F'SE(2&4+S%3(2+,-XM5.5MXBJ8;BH]#S%4+S-Ec-37'F$5EL *7$+=' )0(FR 4) &'+[-L-5$0=<\f9 (0
-L-5$0=<g.h 4- J(+'R 555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
K59K *0'$,' $+ _QP *(+)4=20$,4(+ )4&' 1'04<'1 )0(F $ %$=X()XC(01- )4&' 5555555555555555555555555555555555555555555555555555555555555555555555
K59O *(+<'0, ,'-,4+= )4&'- 4+,( 7'$1'0X&'-- )4&'- )(0 -,(04+= 4+ HDUB 5555555555555555555555555555555555555555555555555555555555555555555555555555555
K59T :'+'0$,' $ i-3(0'1ci )4&' 4+ 3200'+, 140'3,(0L 5555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
K59^ *0'$,' -F$&& 1'&,$ () -EX,0$4+4+=X)4&' 55555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
K56M P($1 -F$&& -$FE&' () B; 4+,( HI$-' <4$ N3&4E-' 555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555
K56. ;'0)(0F JI 4+)'0'+3' (+ ,7' B; 1$,$-', ?2+XY?2+ *(+)4=20$,4(+-555 5555555555555555555555555555555555555555555555555555555555555555555
O I$L'-4$+ *(2+,'0- ̀ $<$1(3 555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555555 "G
T 8114,4(+$& ?'-(203'- j #'37+(&(=4'- k-'1 /+ ,74- #2,(04$& 55555555555555555555555555555555555555555555555555555 "G
7/23/2019 BCounts_SetupTutorial
http://slidepdf.com/reader/full/bcountssetuptutorial 4/26
! "#$%&'()$*&#
#$%&'($) O+,)-&.' T#ZO+,)-'X (' $ ".$6&Y+.C "+. +)Z4()& )&$. .&$4 -(6& 6+G&4 K,(4G()J $)G 5.&G(O-(+)0 [- O$) K& ,
-+ (G&)-("% O+..&4$-(+)' () -H& G$-$V $)G $' $ 4(K.$.% ,'&G -+ .&'5+)G -+ ,),',$4 +. .$.& &3&)-'0 8H& ,)G&.4%
-&OH)+4+J% "+. #ZO+,)-' (' U#$'&V $ H(JH4% 'O$4$K4& $)G "$,4- -+4&.$)- C&%Z3$4,& 6$5 '-+.$J& &)J()&0 8H& '+4,-(+)
'O$4& -+ -H+,'$)G' +" )+G&' $)G K(44(+)' +" "&$-,.&'0 9()$44%V -H& ()(-($4 5.&G(O-(+) $4J+.(-H6 (' \$]3& #$%&' T\#X0
".$6&Y+.C (' O,..&)-4% K&()J &>-&)G&G -+ ()O+.5+.$-& \&$.&'- \&(JHK+.' T\\X $)G $ J&)&.$4 #$%&'($) \&-Y+.C T
4&$.)()J $4J+.(-H6'0
, -./ 0('*/#)/
8H& '-&5' () -H(' -,-+.($4 $.& H(JH4% G&-$(4&G $)G $(6 "+. +5-(6$4 .&5&$-$K(4(-% $- -H& -(6& +" -H(' Y.(-()JV H+Y&3&.
$,G(&)O& 6,'- H$3& W(),> 4(-&.$O% &(-H&. K% &>5&.(&)O&V "+.6$4 -.$()()J +. &G,O$-(+) $)G H$3& $ '-.+)J ,)G&.'-$)G
+" O+65,-&. $)G )&-Y+.C '&O,.(-%0 9()$44%V -H(' -,-+.($4 G+&' )+- O+3&. '-$-('-(O$4 $)$4%'(' $'5&O-' +" -H& '+4,-(+)0
1 -./ 2&34
I.&5$.()J $ G&3&4+56&)- &)3(.+)6&)- (' ,',$44% $ O+654&> -$'C K,- 4&$G' -+ 5+Y&.",4 .&',4-' $)G '-.+)J O$5$K(4(-(
8H(' -,-+.($4 Y(44 $--&65- -+ 6$C& -H(' -$'C $' 5$()4&'' $)G .&5&$-$K4& $' 5+''(K4&0
5 6%&7*8*&#*#9
5:! ;*%(8 <*8= >3%#*#9
[- (' -H& .&'5+)'(K(4(-% +" -H& O,'-+6&.' -+ OH&OC &3&.% G+Y)4+$G 6&)-(+)&G () -H(' G+O,6&)- "+. '(J)$-
3&.("(O$-(+)V .,) ^2_ OH&OC' $)G 3(.,' 'O$)' $)G $)% +-H&. '-&5' -+ &)',.& -H$- )+ G+Y)4+$G 5+'&' $ .('C -+
O,'-+6&.`' -.,'-&G )&-Y+.C0 [- (' $4'+ -H& O,'-+6&.`' .&'5+)'(K(4(-% -+ &)',.& -H$- )&-Y+.C '&O,.(-%V "(.&Y$44'V )&-Y
4&3&4 5+.- K4+OC$J& $.& O+..&O-4% O+)"(J,.&G "+. -H& -.,'-&G )&-Y+.C '5&O("(&G () -H(' G+O,6&)-0 #+-H -H& '&.3&.'
)&-Y+.C .&"&.&)O&G () -H(' -,-+.($4 6,'- K& 5.+3('(+)&G &)-(.&4% "+. -H& 5,.5+'& +" 4&$.)()J ".+6V &>5&.(6&)-()J
O+654&-()J -H(' -,-+.($4 $)G 6,'- )&3&. K& $Ga$O&)- -++V +. () $)% Y$% 'H$.& .&'+,.O&' Y(-H 5.+G,O-(+) +. +-H&.Y
6(''(+) O.(-(O$4 &)3(.+)6&)-'0
5:, ?&@$A3%/ 0%).*7/ >3%#*#9
[- (' -H& .&'5+)'(K(4(-% +" -H& O,'-+6&. -+ 6$()-$() $.OH(3&' +" $44 '+"-Y$.& '5&O("(&G () -H(' G+O,6&)- $' -H& b
bL[`'V [I DGG.&''&' +. +-H&. &>-&.)$4 .&"&.&)O&' '5&O("(&G () -H(' G+O,6&)- 6$% K& O+6& ()3$4(G $- $)% -(6& Y(-H
)+-(O&0
7/23/2019 BCounts_SetupTutorial
http://slidepdf.com/reader/full/bcountssetuptutorial 5/26
5:1 B/7/4&CD/#$ >&%=8$3$*&#
8H& B+.C'-$-(+) 'H+,4G K& 5.+3('(+)&G Y(-H -H& "+44+Y()JP
10 *&)-:; W(),> <0= >?<@<A B+.C'-$-(+)
N0 aGCZ<,=1Z4(),>Z><AZ.56 +. )&Y&. 3&.'(+) +" aGCZ<0 \+-&P 2+ )+- ,'& aGCZ<,1?
=0 1<c# LD^ d N *+.&' 6()(6,6 H$.GY$.& $44+O$-(+)
A0 8H& H+'-)$6& +" -H& Y+.C'-$-(+) "+. -H(' -,-+.($4 (' &>5&O-&G -+ K& 5&.6$)&)-4% $''(J)&G $' H1=0G&6+0G&3
_0 H1=0G&6+0G&3 'H+,4G K& O+)"(J,.&G -+ ,'& $ O&.-("(&G O+5% +" K+-H -H& *&)-:; $)G 7I7W .&5+'
<0 8H& Y+.C'-$-(+) Y(44 )&&G $) &>$654& $OO+,)- O.&$-&G O$44&G " 5+,4()` Y(-H 5&.6(''(+)'P
$0 DOO+,)- 5+,4() 6,'- K& $K4& -+ ',G+ Y(-H .++- 4&3&4 O.&G&)-($4' H1=0G&6+0G&3
K0 DOO+,)- 5+,4() 6,'- K& $K4& -+ 4+J ()-+ -H& J)+6& G&'C-+5 +" H1=0G&6+0G&3V &(-H&. G(.&O-4% () -H& O
+" 4+O$4 K$.& 6&-$4 ()'-$44$-(+)V 36Y$.& ()'-$44$-(+) +. 3(.-,$4K+> ()'-$44$-(+)0 :. 3($ e\* ;;U -,))&
O4(&)- (" -H& Y+.C'-$-(+) (' H+'-&G +) DB; +. -.,'-&G +-H&. .&6+-& O4+,GfeI;V G&G(O$-&G H+'-()J
'&.3(O& +. G$-$O&)-&.0
5:5 EF38/ G4(8$/%
10 \$3(J$-& -+ H--5'PffOO50O4+,G&.$0O+6fG('54$%f2:*f2+O,6&)-$-(+)
N0 2+Y)4+$G $)G $.OH(3& $ O+5% +" $44 G+O,6&)-' ,)G&.P
$0 *4+,G&.$ ̂ $)$J&. A01 7)-&.5.('& 7G(-(+) 2+O,6&)-$-(+)
K0 *4+,G&.$ ̂ $)$J&. A01 9.&& 7G(-(+) 2+O,6&)-$-(+)
=0 9+44+Y -H& '-&5' +,-4()&G () *^ZA01Z".&&Z()'-$44$-(+)ZJ,(G&05G" -+ 5.+3('(+) $ 5'&,G+ G('-.(K,-&G O4,'-&. () -H&
'$6& -.,'-&G )&-Y+.C $' -H& 2&3&4+56&)- B+.C'-$-(+) +) H1=0G&6+0G&30 8H& O4,'-&. 6,'- O+)'('- +"P
$0 D '()J4& H+'- Y(-H -H& $''(J)&G H+'-)$6& H1N0G&6+0G&3
K0 8H& '()J4& H+'- 'H+,4G K& ()'-$44&G Y(-H *^A01 $' Y&44 $' -H& HK$'& $)G $44 G&5&)G&)- .+44' 3($ -H& *^A
b[0
7/23/2019 BCounts_SetupTutorial
http://slidepdf.com/reader/full/bcountssetuptutorial 7/26
J F3K/8*3# G&(#$/%8 L:!:L B/7/4&CD/#$ M#7*%&#D/#$
J:! N&9 *#$& $./ 2#&D/ B/8=$&C &# .!1:'/D&:'/7 A*$. $./ C&(4*# 3))&(#$:
J(,'R c)+6& 2&'C-+5 O+6&' Y(-H *&)-:; W(),> <0= >?<@<A 2&'C-+5 ()'-$44
J:, F%&A8/ $& G4&('/%3 O3#39/% 3$ .$$CPQQ.!,:'/D&:'/7PR!SLQ 3#' 4&9 *# A*$. $./ 3'D*#
3))&(#$ (8*#9 T*%/@&U &% &$./% V%&A8/% *# $./ 2#&D/ B/8=$&C:
7/23/2019 BCounts_SetupTutorial
http://slidepdf.com/reader/full/bcountssetuptutorial 8/26
J:1 >*$.*# G4&('/%3 O3#39/%W E&8$8 XY 0'' E&8$
-.*8 A*44 8$3%$ $./ 0'' E&8$8 >*Z3%': T&44&A $./ *#8$%()$* &@ $./ A*Z3%' $& 3'' .!1:'/D&:'
$& $./ )4(8$/% V($ '& #&$ 3'' 3#K %&448 $& .!1:'/D&:'/7W 38 A/ '& #&$ A3#$ $./ '/7/4&CD/#$
.&8$ $& C3%$*)*C3$/ 38 C3%$ &@ $./ )4(8$/%: >./# )&DC4/$/W .!1:'/D&:'/7 A*44 8.&A (C *# $./
E&8$8 4*8$:
J:5 >*$.*# G4&('/%3 O3#39/%W ?/%7*)/8 XY EF38/ [.V38/!\ 3#' 0)$* XY B&A#4&3' G4*/#$
G&#@*9(%3$*&# 3#' 837/ $& Q.&D/QC&(4*#QB/8=$&CQ.V38/!X)4*/#$)&#@*9:Z*C
J:H >*$.*# G4&('/%3 O3#39/%W ?/%7*)/8 XY O3C</'()/ [D3C%/'()/!\ 3#' 0)$* XY B&A#4&3
G4*/#$ G&#@*9(%3$*&# 3#' 837/ $& Q.&D/QC&(4*#QB/8=$&CQD3C%/'()/!X)4*/#$)&#@*9:Z*C
7/23/2019 BCounts_SetupTutorial
http://slidepdf.com/reader/full/bcountssetuptutorial 9/26
J:J ]C/# 3 -/%D*#34 [044 8./44 )&DD3#'8 9&*#9 @&%A3%' A*44 V/ /U/)($/' *# -/%D*#34\
J:R 6&*#$ .V38/ 8./44 $& .!,:'/D&:'/7
su -l
cd /home/poulin/Desktop/unzip ./hbase1-clientconfig.zip
cp /home/poulin/Desktop/hbase-conf/* /etc/hbase/conf/
rm -fr /home/poulin/Desktop/hbase-conf
J:S -/8$ EF38/ )&##/)$*7*$K 3#' .V38/ 8./44
su poulin
echo "create 'mytest', 'cf1'" | hbase shell
echo "put 'mytest', 'row1', 'cf1', 'val1'" | hbase shell
echo "put 'mytest', 'row1', 'cf1', 'val2'" | hbase shell
echo "scan 'mytest'" | hbase shell
date --date="Fri Nov 11 11:11:11 PST 2011" +%s
# start hbase shell
hbase shell
org.apache.hadoop.hbase.util.Bytes.toString("abcde".to_java_bytes)
org.apache.hadoop.hbase.util.Bytes.toInt("abcde".to_java_bytes)
org.apache.hadoop.hbase.util.Bytes.toInt("\xa\xb\xc\xd".to_java_bytes)
org.apache.hadoop.hbase.util.Bytes.toInt("\x61\x62\x63\x64".to_java_bytes)
org.apache.hadoop.hbase.util.Bytes.toInt("\141\142\143\144".to_java_bytes)
import java.text.SimpleDateFormat
import java.text.ParsePosition
SimpleDateFormat.new("yy/MM/dd HH:mm:ss").parse("11/11/11 11:11:11", ParsePosition.new(0)).getTime()
exit
=> "abcde"
=> 1633837924
=> 168496141
=> 1633837924
=> 1633837924
=> 1321038671000
7/23/2019 BCounts_SetupTutorial
http://slidepdf.com/reader/full/bcountssetuptutorial 10/26
J:^ "#8$344 $./ B/7/4&CD/#$ -&&48 9%&(C
su –l
yum groupinstall Development tools
J:!L "#8$344 0C3)./ O37/# 1:L:_
su –l
cat > /etc/yum.repos.d/epel-apache-maven.repo << EOF
[epel-apache-maven]
name=maven from apache foundation.
baseurl=http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-6Server/x86_64/
enabled=1
skip_if_unavailable=1
gpgcheck=0
EOF
cat > /etc/yum.repos.d/epel-apache-maven-source.repo << EOF
[epel-apache-maven-source]
name=maven from apache foundation. – Source
baseurl=http://repos.fedorapeople.org/repos/dchen/apache-maven/epel-6Server/SRPMS
enabled=0
skip_if_unavailable=1
gpgcheck=0
EOF
yum update yum
yum install apache-maven
ln -s /usr/share/apache-maven/bin/mvn /usr/bin/mvn3
# close and reopen terminal
# confirm Apache Maven 3.0.X
mvn3 –version
J:!! "#8$344 0C3)./ O37/# ,:,:_
su –l
cd /usr/share/
# Reminder: check signature of download and check maven site for alternate mirror if link broken
wget http://apache.petsads.us/maven/maven-2/2.2.1/binaries/apache-maven-2.2.1-bin.tar.gztar -xzf apache-maven-2.2.1-bin.tar.gz
touch /usr/bin/mvn2
chmod ugo+rx /usr/bin/mvn2
vi /usr/bin/mvn2
7G(- f,'.fK()f63)N
#!/bin/bash
MAVEN_HOME=/usr/share/apache-maven-2.2.1
7/23/2019 BCounts_SetupTutorial
http://slidepdf.com/reader/full/bcountssetuptutorial 11/26
PATH=$MAVEN_HOME/bin:$PATH
export MAVEN_HOME
export M2_HOME
export PATH
/usr/share/apache-maven-2.2.1/bin/mvn "$@"
J:!,
"#8$344 38)**'&) '&UK9/# ./4C,D3#W 8&(%)/X.*9.4*9.$ 3#' 6K$.&# ,:R:1
su -l
# Reminder: Downloads from the standard repos automatically do
# signature check if /etc/yum.repos.d directory is
# configured correctly.
yum install asciidoc doxygen help2man
yum install boost-devel
cd /tmp/
curl -O http://mirrors.kernel.org/gnu/src-highlite/source-highlight-3.1.7.tar.gz.sig
curl -O http://mirrors.kernel.org/gnu/src-highlite/source-highlight-3.1.7.tar.gz
# Reminder: Confirm signature is OK before running or installing anything.
# Reminder: If mirror downloads fail, locate an alternate mirror
# by searching the main site of the project.
tar xzvf source-highlight-3.1.7.tar.gz
cd source-highlight-3.1.7
./configure
make
make installcd ~/
rm -fr /tmp/source-highlight-3.1.7*
cd /usr/lib/
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz
wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tgz.asc
tar xzvf Python-2.7.3.tgz && cd /usr/lib/Python-2.7.3
./configure
make
# Note: the following line is not a typo and it really must be “altinstall”
make altinstall
chmod ugo+rx /usr/lib/Python-2.7.3
ln -s /usr/lib/Python-2.7.3/python /usr/bin/python273
python273 –version
ln -s /usr/lib/hadoop-0.20-mapreduce/hadoop-core.jar /usr/lib/hadoop/hadoop-core.jar
J:!1 "#8$344 M)4*C8/ `(#& [ *# @($(%/W #/A/% *8 C%&V3V4K ]aW V($ &C$*D34 %/C/3$3V*4*$K A*$. `(#&\
• \$3(J$-& -+ H--5PffYYY0&O4(5'&0+.JfG+Y)4+$G'fg+'8%5&h4(),>
7/23/2019 BCounts_SetupTutorial
http://slidepdf.com/reader/full/bcountssetuptutorial 12/26
su -l
mv /home/poulin/Desktop/eclipse-jee-juno-SR1-linux-gtk-x86_64.tar.gz /usr/lib/
chown root:root /usr/lib/eclipse-jee-juno-SR1-linux-gtk-x86_64.tar.gz
cd /usr/lib/
tar -xvf ./eclipse-jee-juno-SR1-linux-gtk-x86_64.tar.gz
ln -s /usr/lib/eclipse/eclipse /usr/bin/eclipse
rm -fr /usr/lib/eclipse-jee-juno-SR1-linux-gtk-x86_64.tar.gz
J:!5 0CC/#' $& $./ /#' &@ Q.&D/QC&(4*#Q:V38.%)
*4+'& $)G .&Z+5&) -H& 8&.6()$4 $"-&. $GG()J -H&'& 4()&'0
export M2_OPTS="-server -Xms256m -Xmx512m"
export PATH=${PATH}:/home/poulin/bcounts-0.1.0-SNAPSHOT/bin
export CLASSPATH=`hbase classpath`
export HADOOP_HOME=/usr/lib/hadoop-0.20-mapreduce
export HBASE_HOME=/usr/lib/hbase
source /home/poulin/bcounts-0.1.0-SNAPSHOT/bin/bcount-config.sh 2>> /dev/null
# Note: the following should be a single line
export
BAYESIANCOUNTERS_CLASSPATH=conf:target/classes:~/.m2/repository/net/sf/trove4j/trove4j/3.0.1/*:~/.
m2/repository/net/sf/opencsv/opencsv/2.3/*:~/.m2/repository/com/google/guava/guava/10.0.1/*
J:!H ]C/# 3 ,#'
-/%D*#34 3#' ?$3%$ M)4*C8/ `(#&
su poulin
eclipse
J:!J G4*)= ]a &# A&%=8C3)/ 43(#)./% '/@3(4$8W V&$. #&A 3#' A./# 8//# $.%&(9. $./ %/D3*#'/
&@ $.*8 $($&%*34:
J:!R "#8$344 O,M /U$/#8*&# @&% M)4*C8/ `(#&
J(,'R -H(' Y(44 ,5G$-& fH+6&f5+,4()f0&O4(5'& G(.&O-+.%
o H&45 Zl &O4(5'& 6$.C&-54$O& Zl ;&$.OH -$K Zl "()G T^$3&) [)-&J.$-(+) "+. 7O4(5'&X T&)-&. C&%X
o b)G&. k^$3&) [)-&J.$-(+) "+. 7O4(5'&k O4(OC [)'-$440
o *H&OC $44 K+>&' ,)G&. i*+)"(.6 ;&4&O-&G 9&$-,.&'j (" -H& $.& )+- $4.&$G OH&OC&G $)G *4(OC \&>-0
7/23/2019 BCounts_SetupTutorial
http://slidepdf.com/reader/full/bcountssetuptutorial 13/26
o [" %+, $OO&5- -H& 7O4(5'& 9+,)G$-(+) ;+"-Y$.& b'&. DJ.&&6&)-V *H&OC -H& $OO&5-$)O& $)G *4(OC 9()('H
o BH&) 5.+65-&G -+ .&'-$.- 7O4(5'& *4(OC m&'0
J:!S G4&8/ M)4*C8/
J:!^ ]V$3*# 3 )&CK &@ V)&(#$8XL:!:LX?I06?E]-XC%&b/)$:$3%:VZ, @%&D G4&('/%3 3#' 837/ $&
Q.&D/QC&(4*#Q
J:,L 6%/C3%/ V)&(#$8XL:!:LX?I06?E]- @&% /U/)($*&# @%&D M)4*C8/ 3#' GN"
su poulin
# reminder: Any previously cashed maven downloads for the poulin
# account will be deleted in next command
cd /home/poulin/
tar jxf bcounts-0.1.0-SNAPSHOT-project.tar.bz2
cd /home/poulin/bcounts-0.1.0-SNAPSHOT/
mkdir /home/poulin/bcounts-0.1.0-SNAPSHOT/conf.sac.old
mv /home/poulin/bcounts-0.1.0-SNAPSHOT/conf/hbase-site.xml /home/poulin/bcounts-0.1.0-SNAPSHOT/conf.sac.old/
mv /home/poulin/bcounts-0.1.0-SNAPSHOT/conf/core-site.xml /home/poulin/bcounts-0.1.0-SNAPSHOT/conf.sac.old/
mv /home/poulin/bcounts-0.1.0-SNAPSHOT/conf/mapred-site.xml /home/poulin/bcounts-0.1.0-SNAPSHOT/conf.sac.old/
mv /home/poulin/bcounts-0.1.0-SNAPSHOT/conf/hdfs-site.xml /home/poulin/bcounts-0.1.0-SNAPSHOT/conf.sac.old/
cp /home/poulin/Desktop/*-clientconfig.zip /home/poulin/bcounts-0.1.0-SNAPSHOT/
unzip hbase1-clientconfig.zip
unzip mapreduce1-clientconfig.zip
cp ./hbase-conf/hbase-site.xml /home/poulin/bcounts-0.1.0-SNAPSHOT/conf/
cp ./hadoop-conf/core-site.xml /home/poulin/bcounts-0.1.0-SNAPSHOT/conf/
cp ./hadoop-conf/mapred-site.xml /home/poulin/bcounts-0.1.0-SNAPSHOT/conf/
cp ./hadoop-conf/hdfs-site.xml /home/poulin/bcounts-0.1.0-SNAPSHOT/conf/
rm -fr ./mapreduce1-clientconfig.zip
rm -fr ./hbase1-clientconfig.zip
rm -fr ./hbase-conf
rm -fr ./hadoop-conf
cp /home/poulin/bcounts-0.1.0-SNAPSHOT/conf/mapred-site.xml /home/poulin/bcounts-0.1.0-
SNAPSHOT/src/main/resources/
cp /home/poulin/bcounts-0.1.0-SNAPSHOT/conf/hbase-site.xml /home/poulin/bcounts-0.1.0-SNAPSHOT/src/main/resources/
cp /home/poulin/bcounts-0.1.0-SNAPSHOT/conf/core-site.xml /home/poulin/bcounts-0.1.0-SNAPSHOT/src/main/resources/
cp /home/poulin/bcounts-0.1.0-SNAPSHOT/conf/hdfs-site.xml /home/poulin/bcounts-0.1.0-SNAPSHOT/src/main/resources/
mkdir /home/poulin/bcounts-0.1.0-SNAPSHOT/lib.old
7/23/2019 BCounts_SetupTutorial
http://slidepdf.com/reader/full/bcountssetuptutorial 14/26
mv /home/poulin/bcounts-0.1.0-SNAPSHOT/lib/* /home/poulin/bcounts-0.1.0-SNAPSHOT/lib.old/
cp /usr/lib/hadoop/hadoop-common-2.0.0-cdh4.0.1.jar /home/poulin/bcounts-0.1.0-SNAPSHOT/lib/
# First build with Maven2
wget https://builds.apache.org/job/mrunit-trunk/ws/target/mrunit-1.0.0-SNAPSHOT-hadoop1.jar
rm -fr /home/poulin/.m2
# Install mrunit-1.0.0 into ~/.m2
mvn2 -DskipTests install:install-file -DgroupId=org.apache.mrunit -DartifactId=mrunit -Dversion=1.0.0-
20130107.225915-832 -Dclassifier=hadoop1 -Dpackaging=jar -Dfile=/home/poulin/bcounts-0.1.0-SNAPSHOT/mrunit-1.0.0-
SNAPSHOT-hadoop1.jar
mvn2 install:install-file -DgroupId=org.apache.mrunit -DartifactId=mrunit -Dversion=1.0.0-SNAPSHOT -
Dclassifier=hadoop1 -Dpackaging=jar -Dfile=/home/poulin/bcounts-0.1.0-SNAPSHOT/mrunit-1.0.0-SNAPSHOT-hadoop1.jar
# if the following hangs for more than 5 minutes without output, ctrl-c and then re-run it
# can ignore: [INFO] Unable to find resource *
mvn2 -DskipTests install
# redo the build with mvn3
rm -fr /home/poulin/.m2
mvn3 -DskipTests install:install-file -DgroupId=org.apache.mrunit -DartifactId=mrunit -Dversion=1.0.0-20130107.225915-832 -Dclassifier=hadoop1 -Dpackaging=jar -Dfile=/home/poulin/bcounts-0.1.0-SNAPSHOT/mrunit-1.0.0-
SNAPSHOT-hadoop1.jar
mvn3 install:install-file -DgroupId=org.apache.mrunit -DartifactId=mrunit -Dversion=1.0.0-SNAPSHOT -
Dclassifier=hadoop1 -Dpackaging=jar -Dfile=/home/poulin/bcounts-0.1.0-SNAPSHOT/mrunit-1.0.0-SNAPSHOT-hadoop1.jar
# if the following hangs for more than 5 minutes without output, ctrl-c and then re-run it
mvn3 -DskipTests install
# run without -DskipTests switch
mvn3 install
# make maven project loadable into eclipse
mvn3 -Declipse.workspace=/home/poulin/workspace eclipse:configure-workspace
mvn3 -DdownloadSources=true -DdownloadJavadocs=true eclipse:clean eclipse:eclipse
mvn3 dependency:build-classpath
# Optional: Building a job jar only
mvn3 package
# Optional: Packaging the Source to /home/poulin/bcounts-0.1.0-SNAPSHOT/target/
mvn3 assembly:single
# Optional: Generating JavaDoc only
mvn3 javadoc:javadoc
J:,! G./)= O,c<M6] )4388C3$. 73%*3V4/ 8/$ *# M)4*C8/
o :5&) $ )&Y 8&.6()$4 $)G '-$.- ,5 7O4(5'&
su poulin
eclipse
7/23/2019 BCounts_SetupTutorial
http://slidepdf.com/reader/full/bcountssetuptutorial 15/26
o [) 7O4(5'&P B()G+YZl5.&"&.&)O&'Zla$3$ZlK,(4G 5$-HZlO4$''5$-H 3$.($K4&'
o :)O& ^N@L7I: (' +K'&.3&GV *4(OC *$)O&4 K$OC -+ -H& 5$.&)- 7O4(5'& Y()G+Y
J:,,
"# M)4*C8/P T*4/XY"DC&%$:::XY[/UC3#'\ 2/#/%34 XY [.*9.4*9.$\ MU*8$*#9 6%&b/)$8 *#$& >&%=8C3
XY [)4*)=\ I/U$ XY 3#' 8C/)*@K %&&$ '*%/)$&%K Q.&D/QC&(4*#QV)&(#$8XL:!:LX?I06?E]- [.*$ /#$/%
C38$/'\
7)',.& -H$- KO+,)-' (' OH&OC&G () -H& I.+a&O-' K+> $)G *4(OC 9()('H
7/23/2019 BCounts_SetupTutorial
http://slidepdf.com/reader/full/bcountssetuptutorial 16/26
J:,1 "# M)4*C8/P >*#'&AXY6%/@/%/#)/8XY`373XYG&'/ ?$K4/XYT&%D3$$/%
J:,5 G4*)= "DC&%$d 3#' #37*93$/ $& Q.&D/QC&(4*#QV)&(#$8XL:!:LX
?I06?E]-Q/)4*C8/c@&%D3$$/%c3C3)./:UD4
-./# G4*)= 0CC4K 3#' $./# G4*)= ]a 3#' $./# )4&8/ M)4*C8/:
J:,H G%/3$/ 8)./D3 @&% F3K/8*3# G&(#$/%8 /U3DC4/8 *# EF38/
su poulin
echo "create 'sp', {NAME => '5min', VERSIONS => 1, TTL => 604800, BLOCKCACHE => false}, {NAME =>
'30min', VERSIONS => 1, TTL => 604800, BLOCKCACHE => false}, {NAME => '1day', VERSIONS => 1, TTL
=> 604800, BLOCKCACHE => false}, {NAME => 'All', VERSIONS => 1, TTL => 1209600, BLOCKCACHE =>
false}" | hbase shell
echo "create 'iris', {NAME => '5min', VERSIONS => 1, TTL => 86400, BLOCKCACHE => false}, {NAME =>
'30min', VERSIONS => 1, TTL => 86400, BLOCKCACHE => false}, {NAME => '1day', VERSIONS => 1, TTL =>
86400, BLOCKCACHE => false}, {NAME => 'All', VERSIONS => 1, TTL => 432000, BLOCKCACHE => false}" |hbase shell
echo "create 'ad', {NAME => '5min', VERSIONS => 1, TTL => 259200, BLOCKCACHE => false}, {NAME =>
'30min', VERSIONS => 1, TTL => 259200, BLOCKCACHE => false}, {NAME => '1day', VERSIONS => 1, TTL
=> 259200, BLOCKCACHE => false}, {NAME => 'All', VERSIONS => 1, TTL => 432000, BLOCKCACHE =>
false}" | hbase shell
echo "create 'car', {NAME => '5min', VERSIONS => 2, TTL => 300, BLOCKCACHE => false}, {NAME =>
'30min', VERSIONS => 2, TTL => 1800, BLOCKCACHE => false}, {NAME => '1day', VERSIONS => 2, TTL =>
259200, BLOCKCACHE => false}, {NAME => 'All', VERSIONS => 2, TTL => 432000, BLOCKCACHE => false}"
| hbase shell
7/23/2019 BCounts_SetupTutorial
http://slidepdf.com/reader/full/bcountssetuptutorial 17/26
J:,J N&3' "%*8 '3$3 *#$& EF38/ 7*3 GN"
su poulin
cd /home/poulin/bcounts-0.1.0-SNAPSHOT
bcount com.cloudera.bayesiancounters.util.Driver loader examples/data/iris.data iris
echo "scan 'iris'" | hbase shell
W+$G [.(' G$-$ ()-+ U#$'&
The iris data loaded into hbase is rectangular and newline delimited in the format:
<count-delta>,<count-delta>,<count-delta>,…<classifier><newline>
During the load, the counts in hbase are incremented.
The human-readable meaning and schema of iris.data can be found in the Iris section of
the bayesiancounters-site.xml which is added to a CLASSPATH in prior steps.
For a production pipeline, will repeat this iris.load at a regular interval of deltas
or bind the UI directly to the hbase calls used by the loader code.
The loader logic can be mastered with eclipse by modifying the following section of
this tutorial:
Change from: “Run->Run Configurations”
Change to: “Run->Debug Configurations”
Then check mark next to “Stop in main” and then step through the code.
J:,R N&3' "%*8 '3$3 *#$& EF38/ 7*3 M)4*C8/
o :5&) $ )&Y 8&.6()$4 $)G '-$.- ,5 7O4(5'&
su Poulin
eclipse
o L,)ZlL,) *+)"(J,.$-(+)'000
o M$3$ D554(O$-(+)Zl T.(JH- O4(OCX Zl \&Y
o *4(OC +) -H& \&Y@O+)"(J,.$-(+) -+ &G(- (-' '&--()J' +) -H& .(JH-
o *+)"(J,.& -H& .,)-(6& +5-(+)' $'P
! \$6&P [.('W+$G
! ^$()ZlI.+a&O-P KO+,)-'
!
^$()Zl^$() O4$''P O+60O4+,G&.$0K$%&'($)O+,)-&.'0,-(402.(3&.
! D.J,6&)-'ZlI.+J.$6 $.J,6&)-'P 4+$G&. fH+6&f5+,4()fKO+,)-'Z/010/Z
;\DI;U:8f&>$654&'fG$-$f(.('0G$-$ (.('
! D.J,6&)-'Zle^ $.J,6&)-'P Z24+JAa0O+)"(J,.$-(+)h"(4&PG&K,JZ4+JAa05.+5&.-(&'
o *4(OC +) D554%V -H&) *4(OC +) L,) $)G -H&) 3(&Y -H& *+)'+4& -$K +" -H& 5$.&)- Y()G+Y
o :)O& -H& G$-$ (' 4+$G&GV *4+'& 7O4(5'&
7/23/2019 BCounts_SetupTutorial
http://slidepdf.com/reader/full/bcountssetuptutorial 18/26
J:,S ;*/A "%*8 '3$3 3#' 8)./D3 *# EF38/
# view some of the data
echo "scan 'iris'" | hbase shell | tail
# view the schema via the Stargate interface
firefox http://h12.demo.dev:8080/iris/schema
J:,^ 6/%@&%D IF *#@/%/#)/ &# $./ "%*8 '3$38/$
I&$/P IF *#@/%/#)/ D(8$ V/ /U/)($/' A*$.*# 1LL 8/)&#'8 &@ 4&3'*#9 *%*8 '3$3 *#$& .V38/W &%
D&'*@K $./ 1LL *# $./ @&44&A*#9 8$/C8 $& 3 43%9/% #(DV/% &@ 8/)&#'8 A.*4/ $/8$*#9
o :5&) $ )&Y 8&.6()$4 $)G '-$.- ,5 7O4(5'&
su poulin
eclipse
o
L,)ZlL,) *+)"(J,.$-(+)'000
o M$3$ D554(O$-(+)Zl T.(JH- O4(OCX Zl \&Y
o *4(OC +) -H& \&Y@O+)"(J,.$-(+) -+ &G(- (-' '&--()J' +) -H& .(JH-
o *+)"(J,.& -H& .,)-(6& +5-(+)' $'P
! \$6&P [.('[)"&.&)O&
! ^$()ZlI.+a&O-P KO+,)-'
! ^$()Zl^$() O4$''P O+60O4+,G&.$0K$%&'($)O+,)-&.'0,-(402.(3&.
! Z k h h k h
7/23/2019 BCounts_SetupTutorial
http://slidepdf.com/reader/full/bcountssetuptutorial 19/26
! D.J,6&)-'Zle^ $.J,6&)-'P Z24+JAa0O+)"(J,.$-(+)h"(4&PG&K,JZ4+JAa05.+5&.-(&'
o *4(OC +) D554%V -H&) *4(OC +) L,) $)G -H&) 3(&Y -H& *+)'+4& -$K +" -H& 5$.&)- Y()G+Y
o B$(- "+. .&',4-' () -H& *+)'+4& -$K $)G &>&O,-(+) -+ O+654&-&0
\# ()"&.&)O& +) -H& [.(' G$-$'&-
Opens connection to the iris table
Loads iris classifications from bayesiancounters-site.xml into local memory
Moves columns in hbase between tiers, e.g. T5MIN, T30MIN, etc. while computing scores
and tracking parent and child counts
The logic is derived from naive Bayes classifier theory
The resulting scores, counts and probabilities are displayed to standard output
8H& 5.+K$K(4(-(&' +,-5,- +" 'O+.()J O$) K& ,'&G G(.&O-4% "+. 6+G& O+654&> G&O('(+) 6$C()J $4J+.(-H6' K$'&
+) K&)&"(-f4+'' $)$4%'('0
J:1L 6/%@&%D )4*e(/ 8)&%*#9 A*$. %3#'&D C%&b/)$*
7/23/2019 BCounts_SetupTutorial
http://slidepdf.com/reader/full/bcountssetuptutorial 20/26
o M$3$ D554(O$-(+)Zl T.(JH- O4(OCX Zl \&Y
o *4(OC +) -H& \&Y@O+)"(J,.$-(+) -+ &G(- (-' '&--()J' +) -H& .(JH-
o *+)"(J,.& -H& .,)-(6& +5-(+)' $'P
! \$6&P *4(o,&L$)G+6
! ^$()ZlI.+a&O-P KO+,)-'
!
^$()Zl^$() O4$''P O+60O4+,G&.$0K$%&'($)O+,)-&.'0,-(402.(3&.! D.J,6&)-'ZlI.+J.$6 $.J,6&)-'P O. (.(' =// N =
! D.J,6&)-'Zle^ $.J,6&)-'P Z24+JAa0O+)"(J,.$-(+)h"(4&PG&K,JZ4+JAa05.+5&.-(&'
o *4(OC +) D554%V -H&) *4(OC +) L,) $)G -H&) 3(&Y -H& *+)'+4& -$K +" -H& 5$.&)- Y()G+Y
o B$(- "+. .&',4-' () -H& *+)'+4& -$K $)G &>&O,-(+) -+ O+654&-&0
*4(o,& 'O+.()J O$) K& ,'&G -+ 5&."+.6 3$.($K4& (65+.-$)O& $)$4%'(' +. "+. &6&.J()J -.&)G (G&)-("(O$-(+)0
J:1! G%/3$/ 8D344 '/4$3 &@ $./ 3':'3$3 @*4/
su poulin
head -n 1 /home/poulin/bcounts-0.1.0-SNAPSHOT/examples/data/ad.data > /tmp/ad.small
tail -n 1 /home/poulin/bcounts-0.1.0-SNAPSHOT/examples/data/ad.data >> /tmp/ad.small
7/23/2019 BCounts_SetupTutorial
http://slidepdf.com/reader/full/bcountssetuptutorial 21/26
J:1, N&3' 0' '3$3 *#$& EF38/ 7*3 M)4*C8/
o L,)ZlL,) *+)"(J,.$-(+)'000
o M$3$ D554(O$-(+)Zl T.(JH- O4(OCX Zl \&Y
o *4(OC +) -H& \&Y@O+)"(J,.$-(+) -+ &G(- (-' '&--()J' +) -H& .(JH-
o *+)"(J,.& -H& .,)-(6& +5-(+)' $'P
!
\$6&P DGW+$G
! ^$()ZlI.+a&O-P KO+,)-'
! ^$()Zl^$() O4$''P O+60O4+,G&.$0K$%&'($)O+,)-&.'0,-(402.(3&.
! D.J,6&)-'ZlI.+J.$6 $.J,6&)-'P 4+$G&. f-65f$G0'6$44 $G
! D.J,6&)-'Zle^ $.J,6&)-'P Z24+JAa0O+)"(J,.$-(+)h"(4&PG&K,JZ4+JAa05.+5&.-(&' Zp6>1/NA^
o *4(OC +) D554%V -H&) *4(OC +) L,) $)G -H&) 3(&Y -H& *+)'+4& -$K +" -H& 5$.&)- Y()G+Y
J:11 6/%@&%D IF *#@/%/#)/ &# $./ 0' '3$38/$
<(#XY<(# G&#@*9(%3$*:::
o M$3$ D554(O$-(+)Zl T.(JH- O4(OCX Zl \&Y
o *4(OC +) -H& \&Y@O+)"(J,.$-(+) -+ &G(- (-' '&--()J' +) -H& .(JH-
o *+)"(J,.& -H& .,)-(6& +5-(+)' $'P
!
\$6&P DG[)"&.&)O&! ^$()ZlI.+a&O-P KO+,)-'
! ^$()Zl^$() O4$''P O+60O4+,G&.$0K$%&'($)O+,)-&.'0,-(402.(3&.
! D.J,6&)-'ZlI.+J.$6 $.J,6&)-'P )K $G </A?// k'&5$4@4&)J-Hh_n5&-$4@4&)J-Hh10Ak O4$''hN
! D.J,6&)-'Zle^ $.J,6&)-'P Z24+JAa0O+)"(J,.$-(+)h"(4&PG&K,JZ4+JAa05.+5&.-(&'
o *4(OC +) D554%V -H&) *4(OC +) L,) $)G -H&) 3(&Y -H& *+)'+4& -$K +" -H& 5$.&)- Y()G+Y
o B$(- "+. .&',4-' () -H& *+)'+4& -$K $)G &>&O,-(+) -+ O+654&-&0
o *4+'& &O4(5'&
7/23/2019 BCounts_SetupTutorial
http://slidepdf.com/reader/full/bcountssetuptutorial 22/26
J(,'R 8H&'& .&',4-' $.& ".+6 KO+,)-' +) N 4()&' +" -H& ()5,- G$-$ +)4%0 L&O+66&)G ,'()J '6$44 +.
6&G(,6 '(F&G O4,'-&. "+. 5.+O&''()J -H& &)-(.& $G0G$-$ "(4&0 ;&& *4+,G&.$ ^$)$J&. 2+O,6&)-$-(+) "+.
O4,'-&. '(F& '5&O("(O$-(+)'0
J:15 G%/3$/ V39 &@ A&%'8 @*4/ @%&D )&#@*9(%3$*&# @*4/
su poulin
cd /home/poulin/bcounts-0.1.0-SNAPSHOT/
python273 ./bin/sp_bag_of_words.py ./conf/bayesiancounters-site.xml /tmp/bag-of-words
tail /tmp/bag-of-words
worker
working
wreckage
xvi
yates
young
SP_increase
J:1H M'*$ Q.&D/QC&(4*#QV)&(#$8XL:!:LX?I06?E]-QV*#Q8Cc8)./D3:CK
G.3#9/ @%&DP *@ 4/#[8K8:3%97\f1 &% 8K8:3%97g!h *8 I&#/P
*7$+=' ,(R (" 4&)T'%'0$.J3XqN +. '%'0$.J3r1s (' \+)&P
if len(sys.argv)<2 or sys.argv[1] is None:
J:1J G%/3$/ 3# _ON G&#@*9(%3$*&# @*4/ '/%*7/' @%&D 3 V39X&@XA&%'8 @*4/
su poulin
cd /home/poulin/bcounts-0.1.0-SNAPSHOT/
python273 ./bin/sp_schema.py /tmp/bag-of-words > /tmp/bayesiancounters-example.xml
tail /tmp/bayesiancounters-example.xml
7/23/2019 BCounts_SetupTutorial
http://slidepdf.com/reader/full/bcountssetuptutorial 23/26
<value>SP_increase</value>
</property>
<property>
<name>bayesiancounters.dataset.sp.col.valueset.647</name>
<value>-100, -40, 10, 40, 100</value>
</property>
J:1R G/%$ $/8$*#9 @*4/8 *#$& ./3'/%X4/88 @*4/8 @&% 8$&%*#9 *# EBT?
su poulin
cd /home/poulin/bcounts-0.1.0-SNAPSHOT/
python273 ./bin/sp_training.py /tmp/bag-of-words \
./examples/data/training_19_2004-18_2005.dat > /tmp/sp-training-file
tail -c 32 /tmp/sp-training-file
0,0,0,0,0,0,0,0,0,0,0,0,0,0,7.2
J:1S 2/#/%3$/ 3 i8)&%/'ci @*4/ *# )(%%/#$ '*%/)$&%K
su poulin
cd /home/poulin/bcounts-0.1.0-SNAPSHOT/
python273 ./bin/sp_testing.py /tmp/bag-of-words ./examples/data/testing_19_2005-19_2005.dat
tail -c 32 ./scored_testing_19_2005-19_2005.dat
0,1,0,0,0,0,0,0,2,2,2,1,1,3,6,0
J:1^ G%/3$/ 8D344 '/4$3 &@ 8CX$%3*#*#9X@*4/
su poulin
head -n 1 /tmp/sp-training-file > /tmp/sp-training.small
tail -n 1 /tmp/sp-training-file >> /tmp/sp-training.small
J:5L N&3' 8D344 83DC4/ &@ ?6 *#$& EF38/ 7*3 M)4*C8/
o :5&) $ )&Y 8&.6()$4 $)G '-$.- ,5 7O4(5'&
su poulin
eclipse
o L,)ZlL,) *+)"(J,.$-(+)'000
7/23/2019 BCounts_SetupTutorial
http://slidepdf.com/reader/full/bcountssetuptutorial 24/26
o *4(OC +) -H& \&Y@O+)"(J,.$-(+) -+ &G(- (-' '&--()J' +) -H& .(JH-
o *+)"(J,.& -H& .,)-(6& +5-(+)' $'P
! \$6&P ;5W+$G
! ^$()ZlI.+a&O-P KO+,)-'
! ^$()Zl^$() O4$''P O+60O4+,G&.$0K$%&'($)O+,)-&.'0,-(402.(3&.
!
D.J,6&)-'ZlI.+J.$6 $.J,6&)-'P 4+$G&. f-65f'5Z-.$()()J0'6$44 '5! D.J,6&)-'Zle^ $.J,6&)-'P Z24+JAa0O+)"(J,.$-(+)h"(4&PG&K,JZ4+JAa05.+5&.-(&'
o *4(OC +) D554%V -H&) *4(OC +) L,) $)G -H&) 3(&Y -H& *+)'+4& -$K +" -H& 5$.&)- Y()G+Y
J:5! 6/%@&%D IF *#@/%/#)/ &# $./ ?6 '3$38/$
<(#XY<(# G&#@*9(%3$*:::
o M$3$ D554(O$-(+)Zl T.(JH- O4(OCX Zl \&Y
o *4(OC +) -H& \&Y@O+)"(J,.$-(+) -+ &G(- (-' '&--()J' +) -H& .(JH-
o
*+)"(J,.& -H& .,)-(6& +5-(+)' $'P
! \$6&P ;5[)"&.&)O&
! ^$()ZlI.+a&O-P KO+,)-'
! ^$()Zl^$() O4$''P O+60O4+,G&.$0K$%&'($)O+,)-&.'0,-(402.(3&.
! D.J,6&)-'ZlI.+J.$6 $.J,6&)-'P )K '5 </A?// k'&5$4@4&)J-Hh_n5&-$4@4&)J-Hh10Ak O4$''hN
! D.J,6&)-'Zle^ $.J,6&)-'P Z24+JAa0O+)"(J,.$-(+)h"(4&PG&K,JZ4+JAa05.+5&.-(&'
o *4(OC +) D554%V -H&) *4(OC +) L,) $)G -H&) 3(&Y -H& *+)'+4& -$K +" -H& 5$.&)- Y()G+Y
o B$(- "+. .&',4-' () -H& *+)'+4& -$K $)G &>&O,-(+) -+ O+654&-&0
o *4+'& &O4(5'&
J(,'R 8H&'& .&',4-' $.& ".+6 KO+,)-' +) N 4()&' +" -H& ()5,- G$-$ +)4%0 L&O+66&)G ,'()J '6$44 +.
6&G(,6 '(F&G O4,'-&. "+. 5.+O&''()J -H& &)-(.& $G0G$-$ "(4&0 ;&& *4+,G&.$ ^$)$J&. 2+O,6&)-$-(+) "+.
O4,'-&. '(F& '5&O("(O$-(+)'0
7/23/2019 BCounts_SetupTutorial
http://slidepdf.com/reader/full/bcountssetuptutorial 25/26
[) -H(' &>$654& #ZO+,)-' O$) K& ,'&G "+. 5.&G(O-()J $) &""&O- +" -H& )&Y' +) '-+OC 6$.C&- 6+3&6&)-'
!"# %&'()' *+, -./01.2/23
R F3K/8*3# G&(#$/%8 `373'&)
su Poulin
firefox file:///home/poulin/bcounts-0.1.0-SNAPSHOT/target/site/apidocs/index.html
S 0''*$*" </8&(%)/8 j -/).#&4&9*/8 k8/' "# $.*8 -($&%*34
10 D5$OH& U$G++5 8.$()()J $)G *&.-("(O$-(+) Z H--5Pff,)(3&.'(-%0O4+,G&.$0O+6f
N0
D5$OH& ^$3&) I.+a&O- Z H--5Pff6$3&)0$5$OH&0+.Jf
=0 #$'H L&"&.&)O& ̂ $),$4 Z H--5PffYYY0J),0+.Jf'+"-Y$.&fK$'Hf6$),$4fK$'H.&"0H-64
A0 #$%&'($) *+,)-&.' +) U#$'& Z H--5PffYYY0'4(G&'H$.&0)&-fU$G++5@;,66(-fK$%&'($)ZO+,)-&.'
_0 *&)-:; B(C( Z H--5PffY(C(0O&)-+'0+.Jf
<0 *&)-:; <0p >?<@<A T;$6& (6$J& "+. e^V O4+,GfeI; +. K$.& 6&-$4X Z H--5Pff('+.&G(.&O-0O&)-+'0+.JfO&)-+'f<f('+'f>?<@<Af
t0 *4+,G&.$ 2+O,6&)-$-(+) Z H--5'PffOO50O4+,G&.$0O+6fG('54$%f2:*f2+O,6&)-$-(+)
?0 7O4(5'& 2+O,6&)-$-(+) u *,..&)- L&4&$'& 7O4(5'& M,)+ Z H--5PffH&450&O4(5'&0+.Jfa,)+f()G&>0a'5
v0 7I7W 2+O,6&)-$-(+) Z H--5Pff"&G+.$5.+a&O-0+.JfY(C(f7I7W
7/23/2019 BCounts_SetupTutorial
http://slidepdf.com/reader/full/bcountssetuptutorial 26/26
110 c\b ;+,.O&ZH(JH4(JH- =010t Z H--5PffYYY0J),0+.Jf'+"-Y$.&f'.OZH(JH4(-&f'+,.O&ZH(JH4(JH-0H-64
1N0 I%-H+) 3N0t0= G+O,6&)-$-(+) Z H--5PffG+O'05%-H+)0+.Jf.&4&$'&fN0t0=f
1=0 L,K% () 8Y&)-% ^(),-&' Z H--5PffYYY0.,K%Z4$)J0+.Jf&)fG+O,6&)-$-(+)fo,(OC'-$.-f